[jboss-user] [JBoss Seam] - Re: Persistence context invocation upon application startup
mcanaleta
do-not-reply at jboss.com
Fri Jan 4 06:00:47 EST 2008
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
More information about the jboss-user
mailing list