Hi, Ranchers:
I will bind ConnectionFactory object to RMI. I already have a remote object called RemoteDataAccess. ConnectionFactory has a method
getConnection to create a remote connection for every client. Here is what bafling me: RemoteDataAccess extends UnicastRemoteObject and implements DataInterface, if I have to create another remote object ConnectionFactory, should I do the same thing like: create a ConnectionInterface which extends Remote, and shared by both server and client like DataInterface, then define ConnectionFactory object to extend UnicastRemoteObject and implement ConnectionInterface?
The following code just give me a strange error message:
LINE A just gives me this strange error message:
unreported exception java.rmi.RemoteException; must be caught or declared to be thrown
public class ConnectionGateway extends UnicastRemoteObject
Any help appreciated.