CS 5523 Operating Systems
Simple Hello Server
Remote Invocation in Java

This handout describes the basics of remote invocation using Java. Three distinct hosts are involved:

The overall architecture is shown here:

In most actual implementations, the server handles many remote objects. In our example, the server will actually be the remote object itself. The remote object object has a single remote method called sayHello that takes no input arguments and returns a String "Hello World!".

The RMI in Java is very tricky to set up, because the paths are not what you might think they should be. We will not use packages in this example. We will also always be in the same directory as the source when we compile.

In this handout, we assume that your web page is in the public_html directory under your home directory. You should make a directory under public_html called moreclasses. This directory should be accessible via the web and will be the repository for the class files that you need. We assume that the web server repository resides on a machine called ringer.cs.utsa.edu.

Starting the Registry:

Creating a Server:

Setting up a Client:


Last Revision: March 29, 5:30 pm