diff --git a/openjpa-osgi/src/main/java/org/apache/openjpa/osgi/PersistenceActivator.java b/openjpa-osgi/src/main/java/org/apache/openjpa/osgi/PersistenceActivator.java index 3f94ea09d..128a42a5b 100644 --- a/openjpa-osgi/src/main/java/org/apache/openjpa/osgi/PersistenceActivator.java +++ b/openjpa-osgi/src/main/java/org/apache/openjpa/osgi/PersistenceActivator.java @@ -33,6 +33,7 @@ import org.osgi.framework.BundleContext; public class PersistenceActivator implements BundleActivator { public static final String PERSISTENCE_PROVIDER = PersistenceProvider.class.getName(); + public static final String PERSISTENCE_PROVIDER_ARIES = "javax.persistence.provider"; public static final String OSGI_PERSISTENCE_PROVIDER = PersistenceProviderImpl.class.getName(); private static BundleContext ctx = null; @@ -44,6 +45,7 @@ public class PersistenceActivator implements BundleActivator { PersistenceProvider provider = new PersistenceProviderImpl(); Hashtable props = new Hashtable(); props.put(PERSISTENCE_PROVIDER, OSGI_PERSISTENCE_PROVIDER); + props.put(PERSISTENCE_PROVIDER_ARIES, OSGI_PERSISTENCE_PROVIDER); ctx.registerService(PERSISTENCE_PROVIDER, provider, props); }