Up Previous Next

Here's also how we distribute the program: first compile everything.

javac *.java
Then invoke the rmi compiler (rmic) on the server and client classes.

rmic -classpath . Server
This creates a stub class (the server doesn't call the client thus far).

rmic -classpath . Client
And this creates both a stub and skeleton class (the client does call the server).

We can move all the code to a machine, say, sluggo.cs.indiana.edu.

We choose a free port and start the server on sluggo:

java Server 18276
We connect each client to the server:
java Client sluggo.cs.indiana.edu 18276
What's described above would be test no. 3: the clients report being registered, just like before.

We're surprisingly close to being done setting the basic framework for good.


Up Previous Next