Use relative path for remoting
authorMathieu Baudier <mbaudier@argeo.org>
Fri, 16 Dec 2016 14:59:53 +0000 (14:59 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Fri, 16 Dec 2016 14:59:53 +0000 (14:59 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@9365 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

org.argeo.cms/src/org/argeo/cms/internal/kernel/DataHttp.java

index c08b5180b578a6cdf26c192c8ba7c1e1d70b2333..d9d9c84808bf27d8b143e359c86a6659a0dff21e 100644 (file)
@@ -122,9 +122,10 @@ class DataHttp implements KernelConstants {
                ip.setProperty(JcrRemotingServlet.INIT_PARAM_RESOURCE_PATH_PREFIX, path);
 
                // Looks like a bug in Jackrabbit remoting init
-               ip.setProperty(RemotingServlet.INIT_PARAM_HOME, KernelUtils.getOsgiInstanceDir() + "/tmp/jackrabbit");
-               ip.setProperty(RemotingServlet.INIT_PARAM_TMP_DIRECTORY, "remoting");
+               ip.setProperty(RemotingServlet.INIT_PARAM_HOME, KernelUtils.getOsgiInstanceDir() + "/tmp/remoting_"+alias);
+               ip.setProperty(RemotingServlet.INIT_PARAM_TMP_DIRECTORY, "remoting_"+alias);
                ip.setProperty(RemotingServlet.INIT_PARAM_PROTECTED_HANDLERS_CONFIG, DEFAULT_PROTECTED_HANDLERS);
+               ip.setProperty(RemotingServlet.INIT_PARAM_CREATE_ABSOLUTE_URI, "false");
                httpService.registerServlet(path, remotingServlet, ip, new RemotingHttpContext(anonymous));
        }