Here's also how we distribute the program: first compile everything.
Then invoke the rmi compiler (rmic) on the server and client classes.
This creates a stub class (the server doesn't call the client thus far).
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:
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.