[jboss-user] [JBoss Cache: Core Edition] - Re: Manual node locking?

mircea.markus do-not-reply at jboss.com
Thu Jun 18 04:33:47 EDT 2009

anonymous wrote : Does that sound accurate?
yes, that's the way things happen.

anonymous wrote : But the DummyTransactionManager says it synchronizes in-memory only, so cache clients on two different machines wouldn't be sync'd. 
what that means is that locks will be acquired on the node on which the tx was initiated only. If you have n1 and n2, two nodes in an replicated cluster,
and an transaction having a write lock (WL) on fqn_1 on n1, then same fqn_1 is not locked on n2. In other words, transactions only aquire local locks. Locks are acquired on n2 only at commit time: at this point all operations performed on n1 will be executed in same sequence on n2 (including lock acquisition).

If you need eager remote locking (i.e. acquire locks on all nodes of a cluster at write time) I suggest you to take a look at infinispan: http://www.jboss.org/infinispan

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

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238411

More information about the jboss-user mailing list