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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to