jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: multiple sessions
Date Wed, 26 Jul 2006 18:38:56 GMT

On 7/26/06, Ramesh Devaraj <r.devaraj@maas.de> wrote:
> What are ways of handling the multiple sessions working on the same workspace?

Normally there is no problem with multiple concurrent sessions
accessing the same workspace. You only need to worry about concurrency
when more than one session is modifying the same node.

> And how can Resolving Conflicts with Persistent State

Jackrabbit normally prevents conflicts by throwing an
InvalidItemStateException when an attempt is made to modify a node
that has concurrently been modified by another session. You can avoid
the exception for example by using JCR locks. See the JSR 170
specification for details on how locks work in JCR.


Jukka Zitting

Yukatan - http://yukatan.fi/ - info@yukatan.fi
Software craftsmanship, JCR consulting, and Java development

View raw message