In my assignment the instructions require:
The data access file must be �Data.java� and must implement the following interface DBMain:
public
String[] read(int recNo) throws RecordNotFoundException
public int [] find(String [] criteria) throws RecordNotFoundException
����
So my Data class in which the data access methods are finished implements the interface DBMain. I plan to use DBMain to be the data access interface at client side. In my implementation of rmi, my remote interface DBMainRemote extends Remote and DBMain.
public interface DBMainRemote extends Remote, DBMain
And in my DataRemote class that implemented the interface DBMainRemote and it also has a reference to a Data instance to do actual data access operations.
public DataRemote extends UnicastRemoteObject implements DBMainRemote
However, a remote method must throw RemoteException or its superclass (IOException or Exception), because according to the instructions the method declarations in the interface DBMain are unchanged, where RemoteException can be included?
Any suggestion?