You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Saravanan Paramasivan <sa...@gmail.com> on 2013/06/12 18:24:22 UTC

same parent node update in different thread

We are trying to add nodes under the same parent node in different thread.
We got the below warning.

WARN  org.apache.jackrabbit.core.session.SessionState   : Attempt to perform
node.addNode(abc/XXX/XXXX, mgnl:content, null) while another thread is
concurrently writing to session-admin-187. Blocking until the other thread
is finished using this session. Please review your code to avoid concurrent
use of a session. 

is there anything i need to watch out for this warning?



--
View this message in context: http://jackrabbit.510166.n4.nabble.com/same-parent-node-update-in-different-thread-tp4658864.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Re: same parent node update in different thread

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On Wed, Jun 12, 2013 at 7:24 PM, Saravanan Paramasivan
<sa...@gmail.com> wrote:
> is there anything i need to watch out for this warning?

Yes. Sessions are not guaranteed to be thread-safe, so you should use
a separate session for each thread or alternatively explicitly
synchronize access to a shared session.

BR,

Jukka Zitting