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

Reply via email to