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