Creating Another Pair of RMI Server and Client Programs
Now that you've created one pair of programs that use RMI, it's time to create another pair. The server program will read any file from the hard drive and return it to the client program in the form of a String object.
As with the previous programs, the directory in which all the .java files were created and used was my d:\chapter18 directory. If you decide to use a different directory, make sure all of the steps reflect this change. The directory that was used was explicitly given when compiling the code and using the RMIC program. The exact syntax is shown when appropriate in the following explanations.
All the files for this chapter can be found in the JavaBeans Unleashed section on the ...
Get JavaBeans Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.