Hi ,
I�m using the following map to manage my locked records
The key value is the record number, and the contents is the cookie. Is this approach correct ? May I use the
Java 5 generics to define my map ?
My lock method is
Supose we have two clients trying to lock the same record. Before the put command, Client A put his cookie in the map. After that, client B put his own cookie. How to avoid this situation ? Do we have to synchronize the whole method ? Inserting
synchronized to my method signature, Am I changing my interface specifications ?
Thanks in advance,
M�rcio
[ September 24, 2005: Message edited by: Marcio Aun Migueis ]