Ok, I need to go with tise one step at a time
First
u mean to say that.. the data class will be there on both local and remote scenario but the call to lock and unlock will be be bypassed somehow in local mode..
Yes. While the Data class will "reside" in both places, the client will never directly call the Data class in local or remote.
Next
but there is one more stuff remaining and thats Data Cleint, as per the specs the networking code must be in data client class. so that means that in network environment the call for methods in data class (which is on server side) will be made through data client class.
Not quite sure what this says. What is Data Client class? Is that one of the two classes that would implement the Data classes methods from some DataAccess interface? In this case the two classes, one for local one for remote would separate the need or not need of calling lock or unlock.
and finally
do i have to follow the same scene in case of local mode and here i should modify the methods so that there is no network call there. Or can i skip this class in case of local mode..
Yes. sort of like that, if I am understanding.
In my DataAccessLocal class that implements the DataAccess interface, I have a lock and an unlock method, however there is nothing in the methods, they are just there because by implementing the interface I have agreed to define all those methods.
Hope that is on the same lines. and I hope that helps.
Mark