Hi,
I have a RemoteDataFactory in which a getConnection() method has been implemented, so there is a RemoteData object for every client.
The lock and unlock methods have been implemented in Data class with the help of a LockManager. so Data object has a LockManager object.
I've used the 'current
thread name' to identify the client. The lock/unlock method of RemoteData object changes the thread name to a unique name. Then it calls the lock/unlock method of the Data object.
Is there any problem with my design? Because I think this would be the only mechanism to identify the client in the Data object's lock/unlock method - without changing the signature..
I'm not locking the records in the local mode.
Please comment on my Locking mechanism.
With regards
Manish Kumar