[jboss-user] [EJB 3.0] - Re: Accessing EntityManagerFactory?!
mugwump
do-not-reply at jboss.com
Mon Oct 2 02:35:34 EDT 2006
ok, that was easy after I found
@PersistenceUnit
which injects the EntityManagerFactory (this also works on mbeans, and the persistence-unit is initialized before the mbean: so in case you want to do something fancy with the EntityManagerFactory, you can do so in the create() of an MBean...)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975409#3975409
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975409
More information about the jboss-user
mailing list