[jboss-user] [JBoss Cache Users] - Re: how to lock a node for update?
chtimi2
do-not-reply at jboss.com
Thu Sep 24 03:57:34 EDT 2009
allle i might have a use case a bit like yours, look at my isolation unit test in the other thread http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254357#4254357.
If i use cache.getCache().getConfiguration().setNodeLockingScheme(NodeLockingScheme.PESSIMISTIC);, the test passes.
If i use cache.getCache().getInvocationContext().getOptionOverrides().setForceWriteLock(true); instead, the test fails.
If i use cache.getCache().getInvocationContext().getOptionOverrides().setForceWriteLock(true);
| cache.getCache().getConfiguration().setWriteSkewCheck(true);, the test fails and JBC detects writeSkews. But what i want is not the read thread to fail, but to block until the write thread is over.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256796#4256796
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256796
More information about the jboss-user
mailing list