OPENJPA-1524 Update JNDI lookup to find TransactionManager when running in Apache Aries. Still need to implement a better solution for non-Aries based OSGi environments.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@920553 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Donald Woods 2010-03-08 22:48:24 +00:00
parent c58af533fb
commit dbe6745966
1 changed files with 2 additions and 1 deletions

View File

@ -57,12 +57,13 @@ public class AutomaticManagedRuntime extends AbstractManagedRuntime
private static final String [] JNDI_LOCS = new String []{
"javax.transaction.TransactionManager", // weblogic
"java:/TransactionManager", // jboss & jrun
"java:/TransactionManager", // jboss, jrun, Geronimo
"java:/DefaultDomain/TransactionManager", // jrun too
"java:comp/pm/TransactionManager", // orion & oracle
"java:comp/TransactionManager", // generic
"java:appserver/TransactionManager", // GlassFish
"java:pm/TransactionManager", // borland
"aries:services/javax.transaction.TransactionManager", // Apache Aries
};
private static final String [] METHODS = new String[]{
"com.arjuna.jta.JTA_TransactionManager.transactionManager", // hp