When i try to make in each thread its own session i get javax.jcr.RepositoryException that the repository home "appears to be in use since the file named .lock is locked by another process. So is there any other way to start session in each thread or a have to use notify()?

Rafael


Hi,

On Thu, Nov 13, 2008 at 1:28 PM, RafalJanik <[EMAIL PROTECTED]> wrote:
I'm testing JackRabbit and i'm wondering how it will be work when many users
in the same time start adding the nodes and uploading the files. So I make
few threads - each one gets reference to Session.

You'll want to make sure that each thread has its own session. JCR
sessions are not thread-safe!

BR,

Jukka Zitting


Reply via email to