This content has been marked as final.
Show 1 reply
-
1. Re: Accessing EntityManagerFactory?!
mugwump Oct 2, 2006 2:35 AM (in response to mugwump)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...)