mirror of https://github.com/apache/openjpa.git
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.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@640665 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
169e1ef586
commit
3509e9814d
|
@ -328,18 +328,14 @@ public class WASManagedRuntime extends AbstractManagedRuntime
|
|||
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) {
|
||||
|
|
Loading…
Reference in New Issue