Hi Peter,
You know I feel myself in the confused state.
I started, by considering server design approach first. My Locking Unlocking mechanism over server is stable.
Right now Lock / Unlock methods are present in the Data class. Instance of Data class is bound to the RMI Registry.
But I am unnecessarily getting confused while people extending Data class for Local & Remote operation. In my case personally I feel, overloading some methods within Data class can satsify mine local mode of operation, instead of applying Factory or Adapter
pattern at server. That way, by avoiding Design Patterns, I feel I am keeping my application much simple.
By doing this I am not introducing additional interfaces. So usage design patterns is avoided. I am doing so bcoz i am not having good background of Design Patterns. I feel instead of doing something half cooked, better do something on which you can be very confident.
I have created Session Id pooling at server to identify client who locked record, I need to see if pooling comes under any well known Design Patterns or not.
What do you think, avoiding Design patterns will help me out ?
I am eagerly waiting for sincere opinions from the group.