Originally posted by Mark Spritzler:
Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it
Thanks! and welcome to the JavaRanch!
a)Planning to implement Lock and Unlock in Data class only using an singleton object of LockHandler class.Will use current Thread as sort of client id without changing the lock unlock signature.
But am in doubt as i know that threads servicing clent calls in Rmi can interchange between clients
2) RemoteData adapts Data,i.e. i am creating a instance of Data in the constructor of Data class(Do i need to use singleton pattern over here or just a private instance will make do?)
3) On the Client side DataClient makes use of a factory class in its constructor,so as to connect to Db as per the user input (for Local or Network connection).DataClint has all the public methods of Data class and also implements DataService interface.