Basic HTML version of Foils prepared 3 Feb 98

Foil 16 Summary of steps for setting up RMI

From Overview of Distributed Objects and RMI in Java 1.1 ARL Database Tutorial and CPS616 -- February 98. by Nancy McCracken


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



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Nov 29 1998