Free software is a matter of liberty, not price.
You can have the Connection object store all the locks for that client, and also have Data class have a collection of locks, so that if the client calls unlock, it checks its Connection object, and if it is in there then it can be passed to the Data classes unlock.
The only deduction you had is probably because the relationship between Connection and Data is not guaranteed by RMI, do I understand it correctly?
Free software is a matter of liberty, not price.
"I am no quite clear on what the RemoteDataImplementatio lock methos should do...."
I think call lock() on the LockManager?
Mark
Free software is a matter of liberty, not price.
This one time, at bandcamp, I had relations with a tiny ad.
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
|