All,
Here is what I am thinking about my design....
Database(interface) has all the public methods for the Data class
RemoteDatabase extends Data class and implements Database interface overiding lock and unlock methods.
FlyServer extends Remote interface has the methods for booking a flight, searching for the flight, getting all the airport etc.
FlyServerImpl implements FlyServer extends UnicastRemoteObject provides impl.
Flight class that has the fields flightNo, price, destination, source airports etc.
Airport class which has the details about the airport, for now it only has a name.
RMI specification says that its not necessary that it will create a new thread for each request so I was thing of creating a factory register it with rmi which has only a single method getInstance to return another remote object FlyServer after getting the remoteobject the client will directly call the methods on Flyserver.
The thing I don't understand about most of the designs, ppl are using the DataInfo and FieldInfo on the client side which is not OO.
does this makes sense at all.. plz let me know asap.
thanks