[jboss-user] [JBoss Cache Users] - Re: how to lock a node for update?

chtimi2 do-not-reply at jboss.com
Tue Sep 22 09:54:27 EDT 2009


Have you trying using the pessimistic locking scheme? 

Try adding the following to your replSync-service.xml:
<attribute name="NodeLockingScheme">PESSIMISTIC</attribute>
  |       <attribute name="SyncCommitPhase">true</attribute>
  |       <attribute name="SyncRollbackPhase">true</attribute>      
  |       <attribute name="IsolationLevel">SERIALIZABLE</attribute>

It is the only way i have found to have "select for update" semantics (blocking reads), and it is deprecated.. See my post on a comparable topic: http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254357#4254357

I have no clue how to achieve the same thing with MVCC, or even if it is at all possible.

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

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



More information about the jboss-user mailing list