mirror of https://github.com/apache/openjpa.git
aries needs a different service name for now
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@910300 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8cc89f96dc
commit
0b1268aa5d
|
@ -33,6 +33,7 @@ import org.osgi.framework.BundleContext;
|
||||||
public class PersistenceActivator implements BundleActivator {
|
public class PersistenceActivator implements BundleActivator {
|
||||||
|
|
||||||
public static final String PERSISTENCE_PROVIDER = PersistenceProvider.class.getName();
|
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();
|
public static final String OSGI_PERSISTENCE_PROVIDER = PersistenceProviderImpl.class.getName();
|
||||||
private static BundleContext ctx = null;
|
private static BundleContext ctx = null;
|
||||||
|
|
||||||
|
@ -44,6 +45,7 @@ public class PersistenceActivator implements BundleActivator {
|
||||||
PersistenceProvider provider = new PersistenceProviderImpl();
|
PersistenceProvider provider = new PersistenceProviderImpl();
|
||||||
Hashtable<String, String> props = new Hashtable<String, String>();
|
Hashtable<String, String> props = new Hashtable<String, String>();
|
||||||
props.put(PERSISTENCE_PROVIDER, OSGI_PERSISTENCE_PROVIDER);
|
props.put(PERSISTENCE_PROVIDER, OSGI_PERSISTENCE_PROVIDER);
|
||||||
|
props.put(PERSISTENCE_PROVIDER_ARIES, OSGI_PERSISTENCE_PROVIDER);
|
||||||
ctx.registerService(PERSISTENCE_PROVIDER, provider, props);
|
ctx.registerService(PERSISTENCE_PROVIDER, provider, props);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue