[jboss-user] [JBoss Seam] - Re: EntityManager always Null (Using Jboss, Seam)
do-not-reply at jboss.com
Fri Nov 10 08:46:34 EST 2006
"kasim" wrote :
| thats not really the way you set the entity manager
| You need to use the persistence context annotation to create it. (extended type is optional)
| private EntityManager em;
No, lara is injecting the EntityManager in the correct fashion (when using a Seam Managed Persistence Context).
Lara, does injecting an entity manager (using @In) work at all in your app? Do other injections work? Post components.xml please.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984879#3984879
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984879
More information about the jboss-user