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:
Donald Woods 2010-02-15 18:56:10 +00:00
parent 8cc89f96dc
commit 0b1268aa5d
1 changed files with 2 additions and 0 deletions

View File

@ -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);
} }