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. 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