Can anybody give me the template code for lock and unlock?Thanks Seshan
I would be greateful if anybody could provide me with the sample code for locking and unlocking a record
Actually using Array was just a thought. And, if you can somehow control that only one client can have a lock on a record then, you really don't need to store the client info(Overhead).
Anyways, but, what you say does makes sense. I think I should also store Client Info. Now I can do it. This becomes easy if you store Client Info.
Thanks a lot once again.
Originally posted by Douglas Kent:
What happens to the RMI-based scheme in local mode?
Originally posted by Ajit Kumar:
The following is part of the comment block for the lock method.
" If the argument is -1, lock the whole database. "
Let us assume that client A issues a call to the lock method with -1 as argument (record number). It is possible for some of the records to be already locked by other clients at that moment.
How can client A lock the entire database(I mean all records)?. Does he have to wait indefinitely till he gets all records available for locking?.
i would appreciate your comments on this.