[jboss-user] [EJB 3.0] - Re: JSF, JSP with EJB3
PeterJ
do-not-reply at jboss.com
Tue Mar 10 16:06:16 EDT 2009
Lookup up an entity bean within a servlet is no different than from anywhere else, use the @PersistenceContext annotation to get the EnitytManager and then use that to look up your entity bean. If you like, you can pass the entity bean off to the JSP for rendering.
By the way, I hope you are running JBoss AS 5.0 - I don't think that the @PersistenceContext in a servlet is picked up in 4.2.x.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4216734#4216734
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4216734
More information about the jboss-user
mailing list