geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From genspr...@apache.org
Subject svn commit: r1073257 - /geronimo/server/trunk/plugins/openjpa2/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/PersistenceUnitGBean.java
Date Tue, 22 Feb 2011 08:47:42 GMT
Author: genspring
Date: Tue Feb 22 08:47:42 2011
New Revision: 1073257

URL: http://svn.apache.org/viewvc?rev=1073257&view=rev
Log:
TemporaryClassLoader need  convertResourceUrls=false in bundleClassLoader to load non-META-INF
resources from OSGi.

Modified:
    geronimo/server/trunk/plugins/openjpa2/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/PersistenceUnitGBean.java

Modified: geronimo/server/trunk/plugins/openjpa2/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/PersistenceUnitGBean.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/openjpa2/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/PersistenceUnitGBean.java?rev=1073257&r1=1073256&r2=1073257&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/openjpa2/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/PersistenceUnitGBean.java
(original)
+++ geronimo/server/trunk/plugins/openjpa2/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/PersistenceUnitGBean.java
Tue Feb 22 08:47:42 2011
@@ -54,6 +54,7 @@ import org.apache.geronimo.kernel.classl
 import org.apache.geronimo.naming.ResourceSource;
 import org.apache.geronimo.transaction.manager.TransactionManagerImpl;
 import org.apache.geronimo.transformer.TransformerAgent;
+import org.apache.xbean.osgi.bundle.util.BundleClassLoader;
 import org.apache.xbean.osgi.bundle.util.BundleResourceClassLoader;
 import org.osgi.framework.Bundle;
 import org.slf4j.Logger;
@@ -318,7 +319,7 @@ public class PersistenceUnitGBean implem
 
             // This classloader can only be used during PersistenceProvider.createContainerEntityManagerFactory()
calls
             // Possible that it could be cleaned up sooner, but for now it's destroyed when
the PUGBean is stopped
-            this.tempClassLoader = new TemporaryClassLoader(classLoader);
+            this.tempClassLoader = new TemporaryClassLoader(new BundleClassLoader(bundle,true,false));
             this.bundle = bundle;
         }
 



Mime
View raw message