OPENJPA-1910: Update PersistenceProviderImpl to use different classloader when running in osgi.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1057817 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Richard G. Curtis 2011-01-11 19:28:34 +00:00
parent 04b1abb039
commit c8b5c8350e
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ public class PersistenceProviderImpl
return null;
}
BrokerFactory factory = getBrokerFactory(cp, poolValue, null);
BrokerFactory factory = getBrokerFactory(cp, poolValue, BundleUtils.getBundleClassLoader());
OpenJPAConfiguration conf = factory.getConfiguration();
_log = conf.getLog(OpenJPAConfiguration.LOG_RUNTIME);
pd.checkPuNameCollisions(_log,name);