Are you using the same session across multiple threads?

2009/12/17 sunild <[email protected]>:
> Hi,
>
> In my application, there are multiple threads going to access repository
> simultaneosly.
>
> I have tried using node.lock() and unlock() but faced few problems.
> --session have pending changes, item got locked-cannot lock the node, etc
>
> Finally I decided to go with ReentrantReadWriteLock.
>
> But I see that whenever more than one thread are trying to save the session,
> it is taking much more time.
>
> Can you help me out.  Please suggest me the suitable solutions.
>
> Regards,
> Sunil Dhage
>
>

Reply via email to