Hello everyone. I need help
My project is B&S. Have question about following specification.
#1 Does is mean, when client#1 books a service and updates record#1 and sits idle for two days, client#2 will block for 2 days if it wanted to book same service (record#1) which is not available?
So, does this 'lock' correspond to
a) booking a record in business sense ? OR
b) getting the object lock of the record (in true Java object lock sense) ?
Is it OK to implement a solution where Client#1 has the ownership of record#1 (i.e booked the record in business sense) , but Client#1 does not
have the java object lock of record#1 ?
e.g. Client#1 synchronizes on a collection which holds reserved(booked) records and uses java object lock on the collection, rather than on the record ?
Thanks in advance.
[Andrew: Changed wrapping on code so that horizontal scrolling is (hopefully) not required]
[ February 11, 2006: Message edited by: Andrew Monkhouse ]