jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RafalJanik <r...@softwaremind.pl>
Subject Re: Threads in jackrabbit application
Date Thu, 13 Nov 2008 13:32:54 GMT
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()?


> Hi,
> On Thu, Nov 13, 2008 at 1:28 PM, RafalJanik <rajn@softwaremind.pl> 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

View raw message