1 | 1. Compile the java code. |
2 | 2. Place the interface class extending Remote on the server and the client. |
3 | 3. Place the implementation class extending RemoteObject on the server. |
4 | 4. Generate stubs and skeletons on the server by running the program rmic. Copy the stubs to the client. |
5 | 5. Start the name registry server on the rmi server machine. |
6 | 6. Start the program that creates and registers objects of the implementation class on the rmi server machine. |
7 | 7. Run the client program. |
8 | For more details, see the RMI tutorial at http://www.npac.syr.edu/projects/tutorials/JDBC |