Using RMI in 7 simple steps
1. Create a iRemoteInterface that implements java,rmi.Remote and has as its interface the remote methods.
2. Create the class of the remote object by implementing the iRemoteInterface and extending java.rmi.server. UnicastRemoteObject.
4. Instantiate the remote object and bind it with the registry using java.rmi.Naming.rebind(String, ro).
5. Compile the remote object and use rmic for stubs and skeletons
6. Write the clients using Naming.lookup to get iRemoteInterface reference to the remote object, after installing a RMISecurityManager.
7, Execute both the server and the client.