[jboss-user] [JBossCache] - Re: Transactions problem

manik.surtani@jboss.com do-not-reply at jboss.com
Wed Nov 29 09:30:56 EST 2006


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



More information about the jboss-user mailing list