Hi Pep,
The basic answer comes from the instructions:
Extending suncertify.Data:
The lock method should block until the requested lock can be applied.
So Sun expect the lock method to call wait() if someone else has already locked the record you want, and the unlock() method should call notifyAll() to ensure that waiting clients get another chance to try and lock the record.
By the way, are you tracking ownership of the locks (to ensure that only the person who has locked the record may unlock it)?
Regards, Andrew
[ November 01, 2003: Message edited by: Andrew Monkhouse ]