Hide
please introduce a new bundle type: someting like a "Persistence Archiv",
whose Activator should create an EntityManagerFactory and publish it as an OSGi service, so that multiple EjbJar bundles can use it.
then some EJB bundles can use the same EntityManagerFactory for a given persistence unit
at the moment all must be in one bundle - otherwise all wills ends up with EZB creating multiple EntityManagerFactory, thus one may have some kind of incoherent view of your datas.
(as discussed by mail with Guillaume)
thanks ekke
Show
please introduce a new bundle type: someting like a "Persistence Archiv",
whose Activator should create an EntityManagerFactory and publish it as an OSGi service, so that multiple EjbJar bundles can use it.
then some EJB bundles can use the same EntityManagerFactory for a given persistence unit
at the moment all must be in one bundle - otherwise all wills ends up with EZB creating multiple EntityManagerFactory, thus one may have some kind of incoherent view of your datas.
(as discussed by mail with Guillaume)
thanks ekke