Better define which classloader is used
authorMathieu Baudier <mbaudier@argeo.org>
Sat, 3 Nov 2012 07:10:20 +0000 (07:10 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Sat, 3 Nov 2012 07:10:20 +0000 (07:10 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@5688 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/ThreadBoundJcrSessionFactory.java

index 9dee3a078e23f1dc4600f99895af1c32e88e5b0b..e0d78b31aeec3c4747a07f8b9bf42502ab764396 100644 (file)
@@ -65,9 +65,9 @@ public abstract class ThreadBoundJcrSessionFactory {
 
        public ThreadBoundJcrSessionFactory() {
                Class<?>[] interfaces = { Session.class };
-               proxiedSession = (Session) Proxy.newProxyInstance(getClass()
-                               .getClassLoader(), interfaces,
-                               new JcrSessionInvocationHandler());
+               proxiedSession = (Session) Proxy.newProxyInstance(
+                               ThreadBoundJcrSessionFactory.class.getClassLoader(),
+                               interfaces, new JcrSessionInvocationHandler());
        }
 
        /** Logs in to the repository using various strategies. */