On the server side you need to tell us what the "lock" object is. It appears to be some kind of Collection object
Your locking code does not block when trying to lock a locked record.
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Can IllegalMonitorStateException ever be thrown?
I don't think a Vector is a good choice
how are you ensuring that only the client who locks a record can unlock it?
Client A locks record 5
* Client B starts by unlocking record 5 (don't care if it is locked or not - exception will be swallowed)
* Client B locks record 5
look! it's a bird! it's a plane! It's .... a teeny tiny ad
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|