openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwsut...@apache.org
Subject svn commit: r640665 - /openjpa/branches/1.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/ee/WASManagedRuntime.java
Date Tue, 25 Mar 2008 01:35:25 GMT
Author: kwsutter
Date: Mon Mar 24 18:35:14 2008
New Revision: 640665

URL: http://svn.apache.org/viewvc?rev=640665&view=rev
Log:
OPENJPA-540.  Committing a simpler version of the patch.  Got rid of the ClassResolver classloader
and am now just relying on the Class.forName() classloading.  This is similar to the processing
used for the other *ManagedRuntime classes.

Modified:
    openjpa/branches/1.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/ee/WASManagedRuntime.java

Modified: openjpa/branches/1.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/ee/WASManagedRuntime.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/ee/WASManagedRuntime.java?rev=640665&r1=640664&r2=640665&view=diff
==============================================================================
--- openjpa/branches/1.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/ee/WASManagedRuntime.java
(original)
+++ openjpa/branches/1.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/ee/WASManagedRuntime.java
Mon Mar 24 18:35:14 2008
@@ -328,18 +328,14 @@
                 ctx.close();
             }
 
-            ClassLoader loader = _conf.getClassResolverInstance()
-                .getClassLoader(getClass(), null);
-
             Class extendedJTATransaction = Class.forName(
-                "com.ibm.websphere.jtaextensions.ExtendedJTATransaction", true,
-                loader);
+                    "com.ibm.websphere.jtaextensions.ExtendedJTATransaction");
+            Class synchronizationCallback = Class.forName(
+                    "com.ibm.websphere.jtaextensions.SynchronizationCallback");
 
             _registerSync = extendedJTATransaction.getMethod(
-                "registerSynchronizationCallbackForCurrentTran",
-                new Class[] { Class.forName(
-                    "com.ibm.websphere.jtaextensions.SynchronizationCallback",
-                    true, loader) });
+                    "registerSynchronizationCallbackForCurrentTran",
+                    new Class[] { synchronizationCallback });
             _getGlobalId = extendedJTATransaction.
                 getMethod("getGlobalId", null);
         } catch (Exception e) {



Mime
View raw message