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