Thanks guys, I get your point.
Bal, my multiple inheritance idea was applied on interfaces
Allow me to present you my design, I'd appriciate your wise words :
db package
----------
- all classes provided by Sun
- DataInterface extends Remote throwing
Exceptions
- LockManager nested within Data
- Data implements DataInterface
server package
--------------
- RemoteDataImpl extends UnicastRemoteObject implements DataInterface throwing
RemoteException, DatabaseException, IOException : wraps a Data object
- Server : binds RemoteDataImpl to RMIRegistry
client package
--------------
- LocalDataImpl implements DataInterface throwing
DatabaseException, IOException : wraps a Data object
- DataProxy implements Data throwing
Exceptions : has 2 ctors : 1 for local, 1 for remote. Wraps LocalDataImpl or RemoteDataImpl depending on choosen ctor
- ClientData : facade for the DataProxy : 2 methods : book() and search()
Andrew
[ April 05, 2002: Message edited by: Andrew Collins ]
[ April 05, 2002: Message edited by: Andrew Collins ]