Synchronize login
authorMathieu Baudier <mbaudier@argeo.org>
Mon, 18 Apr 2011 16:49:37 +0000 (16:49 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Mon, 18 Apr 2011 16:49:37 +0000 (16:49 +0000)
NEW - bug 17: Generalize agent management and registration beyond JMS
https://bugzilla.argeo.org/show_bug.cgi?id=17

git-svn-id: https://svn.argeo.org/commons/trunk@4449 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

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

index 352ab51a7db887a061a7e70c7d810b0798d66383..4e9e0a759d51f7e1b44110f3cc6e2acbdbe7a9a0 100644 (file)
@@ -69,7 +69,7 @@ public abstract class ThreadBoundJcrSessionFactory {
        }
 
        /** Logs in to the repository using various strategies. */
-       protected Session login() {
+       protected synchronized Session login() {
                if (!isActive())
                        throw new ArgeoException("Thread bound session factory inactive");