jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Müller <thomas.muel...@day.com>
Subject Re: Questions about opened Session
Date Wed, 22 Apr 2009 10:20:59 GMT
Hi,

> 1. Open a Session whenever needed and destroy it immediately after the use
> 2. Open a Session and reuse it. Destroy it only when the whole application
> goes down.

I think you can do both. Creating a new Jackrabbit session is quite fast.

However you should ensure a session is not used concurrently (at the
same time in multiple threads). Sessions are not multithreading safe.

Regards,
Thomas

Mime
View raw message