[jboss-user] [JBossCache] - "Manually" acquiring a lock on a node

spennec do-not-reply at jboss.com
Wed Nov 14 05:53:32 EST 2007


Hello,

In my project, we cache the result of a computation. This computation takes quite some time (5-6 seconds) to be done.

When the definition of the computation is modified, the node corresponding to the modified computation is removed. At that time, the computation is updated, and its new result is cached.

What I would like to do is get a lock on the computation's node (or parent), remove the node, update the value to cache and put the new value in the node. Only after that the node would be unlocked.

Is there a way to do this?

Thanks :)

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

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



More information about the jboss-user mailing list