I'd like to create an OSGi module which would act as a 'JPA master' making JPA EntityManager available to other OSGi modules. The persistence.xml would be part of this module but it would do nothing more.
I'd like to then access EntityManager from other OSGi bundles, both JARs and WARs (JAR Bundles and WAR Bundles).
I'm running on GlassFish 188.8.131.52 and using EclipseLink as the JPA provider.
Yes, this is possible. Check out section #8.1 (Standalone Persistence Unit) of "OSGi Application Development using GlassFish Server" guide available at: