/** * This class is a simple example of a RMI Server * @author Renga **/ public class RMIExampleServer extends UnicastRemoteObject implements RMIExample {
/** * Do nothing constrUCtor * @throws RemoteException **/ public RMIExampleServer() throws RemoteException { System.out.PRintln( "RMIExampleServer::cntr" ); }
/** * Returns "Hello World from RMI!" * @return A string * @throws RemoteException **/ public String sayHello() throws RemoteException { return "Hello World from RMI!"; } }