> Kees has removed this synchronization in the 1.8 branch (because it seems a
> bit dangerous). If it would prove to work ok it perhaps could be proted to
> 1.7.
Still i'm not happy with the way I did it.

I think we need to lock on node number to get the code more elegant.
Michiel, in tesite there is a LockManager that can lock on a key.
String lockName = ""+ number;
try {
Lockmanager.getLock(lockName);
} finally {
LockManager.unlock?(lockName);
}

I think such code should be used.

Reply via email to