[jboss-user] [JBossCache] - Acquire lock

superuser33 do-not-reply at jboss.com
Mon Jul 10 22:49:14 EDT 2006


Hi, just started evaluating JBossCache for our clustering needs, and i was not able to find a simple clusterwide readLock / writeLock. Is this available/supported through JBossCache or JGroups at all?

Ideally it would be something as simple as
------------------------------------------------

  | ClusterLock lock = tree.acquireReadLock("/key/a",30000L); //30 second timeout
  | try {
  |     //do stuff
  | } finally {
  | tree.releaseReadLock("/key/a");
  | }
  | 

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

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



More information about the jboss-user mailing list