Distributed Systems Lab: Java Remote Method Invocation



In this lab, we will try out Java RMI.

1. Hello World

Here are the files that make up our RMI version of the Hello World Example: HelloInterface, Hello, HelloServer, and HelloClient.

Compile the code with the Java compiler and the RMI compiler, then run it.

2. Hello World over the Network

Adapt the code so that the client and the server run on two different machines.

3. Stubs and Skeletons

Inspect the command
   rmic
and run the compiler so that it keeps the code for the stubs and skeletons that it has produced.
Generate a Corba interface description (in IDL) using this command.

4. Print Server

Write a client and a server so that the client can send a string to the server and the server prints the string to standard output.


BACK Back to the labs page