"No_EJB" wrote:"No_EJB" wrote:
First of all, thanks for the great work on Treecache.
I am looking forward to using it in my current project. But before I started, I have some questions (also please let me know if this is not the right forum since I noticed there is a mailing list for javagroup too):
Does tree cache package have distributed lock? What I meant is if somebody acquire a write lock on one node in the cache and across entire cluster(or view) no other thread/process can acquire a read/write lock until it release?
I looked at LockStrategery code, it is not clear to me how it aquires distributed lock.
Thanks.
"bela" wrote:"bela" wrote:
no, lock strategy does not acquire a distributed lock. Locks are always local. Only when we are about to commit a transaction to we acquire distributed locks. This happens as part of the two phase commit protocol.
Bela