chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller <f...@apache.org>
Subject Re: How long should a session exist (best pratice)?
Date Thu, 27 Nov 2014 11:24:21 GMT
Hi Peter,

Keep the session object and reuse it as long as you can. It doesn't 
expire.
Creating a session object requires an extra call to the server. By 
reusing the object you avoid these inital server requests.


- Florian


> Hi,
> 
> 
> 
> I have a JAVA application which receives requests via a SOA service and 
> for
> each request a CMIS call is done (create document or get document). 
> During
> office times I think we handle 100 request each hour (average). I 
> wonder if
> I should create a new session for each received request, or only to 
> create
> one session when the JAVA application is started (and use this one for 
> all
> received requests). Can you please tell me what the best practice for 
> this
> is?
> 
> 
> 
> Regards, Peter

Mime
View raw message