Community
Participate
Working Groups
I see the following class in gemini/jpa bundle: public class GeminiOSGiInitializer extends JavaSECMPInitializer { ... static { EntityManagerFactoryProvider.initialEmSetupImpls = new HashMap<String, EntityManagerSetupImpl>(); EntityManagerFactoryProvider.initialPuInfos = new HashMap<String, SEPersistenceUnitInfo>(); } ... } Everytime this class is initialized, the static initializer cleans up any persistence units already created outside OSGi context. This affects usability of gemini/jpa bundles in an environment which support both OSGi and non-OSGi style use of JPA, e.g., glassfish.
Created attachment 184735 [details] Removes initialization of EntityManagerFactoryProvider statics
With blocking Bug 319765 resolved the initialization code in GeminiOSGiInitializer can be removed. The EclipseLink fix appears in nightly builds starting with 20101204. Patch committed in SVN TX 90.
The blocker bug is being reopened.
Blocker bug resolved by Bug 332743.