Remote Method Invocation: Based On Notes by D. Hollinger Also Based On Sun's Online Java Tutorial
Remote Method Invocation: Based On Notes by D. Hollinger Also Based On Sun's Online Java Tutorial
import java.rmi.*;
public interface MyRemote extends Remote {
public int foo(int x) throws RemoteException;
public String blah(int y) throws RemoteException;
. . .
}
Class implementing
your remote service
MyRemote r = (MyRemote) o;
// . . . Use r like any other Java object!
} catch (RemoteException re) {
. . .
} catch (MalformedURLException up) {
throw up;
}