mirror of
https://github.com/apache/openjpa.git
synced 2025-02-08 19:15:21 +00:00
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();
|
ctx.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
ClassLoader loader = _conf.getClassResolverInstance()
|
|
||||||
.getClassLoader(getClass(), null);
|
|
||||||
|
|
||||||
Class extendedJTATransaction = Class.forName(
|
Class extendedJTATransaction = Class.forName(
|
||||||
"com.ibm.websphere.jtaextensions.ExtendedJTATransaction", true,
|
"com.ibm.websphere.jtaextensions.ExtendedJTATransaction");
|
||||||
loader);
|
Class synchronizationCallback = Class.forName(
|
||||||
|
"com.ibm.websphere.jtaextensions.SynchronizationCallback");
|
||||||
|
|
||||||
_registerSync = extendedJTATransaction.getMethod(
|
_registerSync = extendedJTATransaction.getMethod(
|
||||||
"registerSynchronizationCallbackForCurrentTran",
|
"registerSynchronizationCallbackForCurrentTran",
|
||||||
new Class[] { Class.forName(
|
new Class[] { synchronizationCallback });
|
||||||
"com.ibm.websphere.jtaextensions.SynchronizationCallback",
|
|
||||||
true, loader) });
|
|
||||||
_getGlobalId = extendedJTATransaction.
|
_getGlobalId = extendedJTATransaction.
|
||||||
getMethod("getGlobalId", null);
|
getMethod("getGlobalId", null);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user