Mark,
All right,I've renamed my classes and now I'll explain the entire Server system:
RemoteDataAccesInterface extend Remote - interface that contain all the Data methods and the lock and unlock methods declaration.
Data - give the methods to acces the db.db file.just as given from the assignement.
DataServer extend Data(,UnicastRemoteObject) implement Runnable,RemoteDataAccessInterface - just the implementation of the lock and unlock methods. My problem is there !! I need to extend the Data class AND the UnicastRemot...
ConnectionFactoryInterface extend Remote - interface which contain the getConnection() method
ConnectionFactory extend UnicastRemoteObject implement ConnectionFactoryInterface - the getConnectin is implemented . When a client call this method : creation of a DataServer object,bind it to the registry and return the name of the object bound to the client. So the Client have to make a connection to the object created. Then each Client own his own DataServer Object in his own
Thread.
LockMgr - a "static" map that contain the records number and their state (Locked - Unlocked)
to make the things more clear for me, can you answer this short questions:
1)How many object are bound in your rmiregistry?
I expect you have one ConnectionFactory object( to get a reference to the DataAcces objects) and the same number of DataAccess object than the number of client which are connected
2)Did I miss something in my Server Design?
3)How many "aspirin" have you eat since the beginning of your assignement?
Thank you so much for the advice
Bruno