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 [mailto:[email protected]] 
> Sent: Montag, 17. Oktober 2011 10:29
> To: [email protected]
> 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
> 

Reply via email to