Mark:
Could you take a look at my design? My design is very simple. No lock manager, no Facade. It works. But I don't know if I miss anything. Maybe need more work on the Server class.
Thanks.
DB:
Data{
//implements the lock, unlock, and search methods here
}
Server side:
DataRemote extends Remote{
//defines all the public methods in Data and other own-designed methods
}
DataRemoteImpl implements DataRemote{
//RMI implementation
//forword mothods to Data
}
Server{
//get the instance of DataRemoteImpl and export it;
//rebind it to the rmiregistry
//need anything else here?
}
Client side:
Client{
//GUI
//invoke methods on DataServer returned by a Factory
}