jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: Concurrent modifications
Date Wed, 23 Apr 2008 12:07:52 GMT
Hi,

On Wed, Apr 23, 2008 at 2:49 PM, Stefan Guggisberg
<stefan.guggisberg@gmail.com> wrote:
>  the following code will trigger the InvalidItemStateException:
>
>      n1.getNode("jcr:content").setProperty("jcr:data", testcontent +
>  ", session 1");
>
>      n2.getNode("jcr:content").setProperty("jcr:data", testcontent +
>  ", session 2");
>      n2.save();
>      n1.save();

I would argue that it shouldn't throw the exception. IMHO the only
time setProperty() should throw an exception is if another session has
removed the parent node.

BR,

Jukka Zitting

Mime
View raw message