If they run simultaneously, both transactions won't succeed.  One of them will 
fail since there will be a race condition to commit at the same time, and both 
transactions will have locks on the node in question.  

If you removed your sleep time, chances of success are higher, but there will 
still be that race condition.  This is expected since cluster-wide locks are 
not obtained when you read your node using a cache.get().

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989706#3989706

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989706
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to