Sunteți pe pagina 1din 1

We will start by coding the remote object.

import java.rmi.*;

public interface AddServer extends Remote


{

public int AddNumbers(int firstnumber,int secondnumber) throws


RemoteException;
}

rmic RmiServer
start rmiregistry
java RmiServer
java RmiClient