Try injecting the entityManager:

@In("entityManager")
  | private EntityManager em;

It works for me in an application scoped component for initializing purposes, 
like you need. I'd like to know the difference of injecting it or using the 
@PersistentContext annotation...

Hope it helps!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116983#4116983

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116983
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to