[jboss-user] [JBoss Cache: Core Edition] - Re: Cache modified time not updated in a clustered environme

manik.surtani@jboss.com do-not-reply at jboss.com
Mon Apr 14 19:36:43 EDT 2008

Another not-too-elegant approach would be to start a transaction and read the node, then mark the node as in use.  This way,

1)  local evictions won't remove your node because you have marked it as in use.
2)  remote evictions won't remove your node since your tx has a lock on it.  Remote evictions will in fact fail and be put on a recycle queue if you are using synchronous replication, or fail quietly if you are using async replication.

When you are done with your update, call unmarkNodeCurrentlyInUse() and commit your transaction to release locks.

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

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

More information about the jboss-user mailing list