Documentation
[lgpl/argeo-commons.git] / jcr / org.argeo.cms.jcr / src / org / argeo / jcr / JcrUtils.java
index 3be8be184b25f269d581d09f2bf541980883143d..1f1fa11217d01e76a5bbf96d4652de4c5459c5b6 100644 (file)
@@ -1144,6 +1144,14 @@ public class JcrUtils {
                                // try to create workspace
                                defaultSession = repository.login(credentials);
                                defaultSession.getWorkspace().createWorkspace(workspaceName);
+
+                               // work around non-atomicity of workspace creation in Jackrabbit
+//                             try {
+//                                     Thread.sleep(5000);
+//                             } catch (InterruptedException e1) {
+//                                     // ignore
+//                             }
+                               
                                workspaceSession = repository.login(credentials, workspaceName);
                        }
                        return workspaceSession;