jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edgar Merino <donvo...@gmail.com>
Subject Re: Remove child nodes while iterating them
Date Fri, 28 Nov 2008 10:04:53 GMT
Never mind, removing them from the parent node and then updating it 
seems to be the way to go.

Edgar Merino

Edgar Merino escribió:
> Hello,
>    Thanks for the replies on previous messages. OCM is working fine, 
> but I've noticed that when calling ObjectContentManager#remove(Object 
> obj) it removes the node from the underlaying session, if this is done 
> while iterating a collection I get a PathNotFoundException, since the 
> path of the objects in the collection does not correspond to the 
> actual paths of the nodes within the session. Is there anyway I can 
> avoid this (without creating a Query)?
> Thanks in advance,
> Edgar Merino

View raw message