jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Wechner <michael.wech...@wyona.com>
Subject Re: Session Handling in WebApplication
Date Tue, 09 Sep 2008 06:41:14 GMT
Krohne, Frank - ENCOWAY schrieb:
> Hi,
>
>
>  
>
> It would be great to get some hints or tips on how to handle jackrabbit
> sessions in a web application.
>   

AFAIK:

"Session Handling -- a JCR session is obtained by providing credentials 
to the Repository implementation. Also, the methods on it are not 
thread-safe. The easiest approach for using in a Web Application thus is 
to instantiate a new JCR session for each HTTP request. This is also the 
approach used by the Jackrabbit WebDAV servlet. It is not expected that 
this affects performance negatively; session instatiation should be 
cheap. If this assumption turns out to be wrong, session pooling should 
be considered."

HTH

Michael
>  
>
> Thanks in advance
>
>  
>
> Frank
>
>
>   


Mime
View raw message