chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florent Guillaume>
Subject Re: Stable session id for a OpenCMIS server when using OpenCmis Workbench
Date Mon, 17 Oct 2011 17:53:20 GMT
I would be for encouraging client writers to use cookie support, it's
really the best way, cookies are designed to allow a server to
maintain sessions when using HTTP.
Anything else will be artificially constrained IMHO.


On Mon, Oct 17, 2011 at 12:40 PM, Florian Müller
<> wrote:
> Hi Achim,
> This has actually nothing to do with OpenCMIS.
> I assume your servlet engine sets a cookie to maintain the session. Since most CMIS client
don't send that cookie back, each request looks like a new session and the servlet engine
generates a new id.
> You could, of course, turn the cookie support in the OpenCMIS client on, but don't expect
that other clients have that capability.
> CMIS is stateless. Applying state on the server side is rather difficult. Your only hint
is probably the username or maybe the combination of the username and the IP address.
> Florian
> On 17/10/2011 09:38, Weigel, Achim wrote:
>> Perhaps I should add that we are doing this in the method getCallContextMap(HttpServletRequest
request) of our CallContextHandler.
>> -----Original Message-----
>> From: Weigel, Achim []
>> Sent: Montag, 17. Oktober 2011 10:29
>> To:
>> Subject: Stable session id for a OpenCMIS server when using OpenCmis Workbench
>> Hello,
>> we are implementing an (Open)CMIS compliant server and need some kind of session
concept for it. We are using the OpenCMIS Workench as client and tried out the following using
the atompub binding:
>> We implemented and configured a CallContextHandler and tried to fetch the session
id from the request:
>> String sessionId = request.getSession().getId();
>> Unfortunately the id is different for all requests.
>> Do you perhaps know how we could resolve this?
>> Thank you very much in advance and best regards,
>> Achim

Florent Guillaume, Director of R&D, Nuxeo
Open Source, Java EE based, Enterprise Content Management (ECM)   +33 1 40 33 79 87

View raw message