posted 15 years ago
Hello,
I have in my DB interface
There is a little bit difficult situation:
if I run
RecordNotFoundException should be thrown for the unlock, because record 1 is already deleted.
I handled this situation so that delete unlocks the record and notifies all waiters, but I have started to think if I should change the implementation.
What you think, should there be unlock after delete? I think I can do the new implementation, where the RecordNotFoundException is not thrown from the unlock method if the record is deleted and the lockCookie is correct.
BR,
Mika
SCJP, SCJD, SCEA
http://fi.linkedin.com/in/mikatapanainen