[jboss-user] [JBoss Cache: Core Edition] - Re: Exclusive lock is acquired on all nodes not one only
manik.surtani@jboss.com
do-not-reply at jboss.com
Mon Jun 16 06:56:48 EDT 2008
If you were using 2.X there is a setForceWriteLock() option which would have worked for you.
As a workaround, you could do this:
1. Configure your cache with R_R.
2. Start your transaction.
3. Whenever you need to READ a node, first WRITE a dummy value to it. E.g., cache.put("/root/subroot/A", "dummy", null); This will force a write lock on the node, and no other thread will be able to read it.
4. Perform your READ.
5. Commit your tx.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158306#4158306
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158306
More information about the jboss-user
mailing list