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#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...