RMI examples

FileDisplay applet front end to FileSource remote object


See the lectures for details. This is a summary.

On sirah.csit.fsu.edu:

  1. Choose the Web document directory in which you will install the applet and other classes. Modify the codebase property in FileServer.java accordingly.
  2. Choose a port number on which your RMI registry will listen (between 1024 and 64K). Modify the port parameter in filedisplay.html accordingly.
  3. Choose the name of your data file. Modify the file parameter in filedisplay.html accordingly.
  4. Compile all code:
        javac FileSourceImpl.java
        rmic FileSourceImpl
        javac FileServer.java
        javac FileDisplay.java
  5. Make the class files world readable:
        chmod o+r *.class
  6. Convert the HTML if you will be viewing the applet using the Java Plug-in:
        htmlconv filedisplay.html -backup BAK
  7. Make sure this directory and the HTML are readable:
        chmod o+r .
        chmod o+r filedisplay.html
  8. Make sure your data file exists in this directory.
  9. Run the file server program
        java FileServer XXXX
    where XXXX is the port number you chose earlier.
You should be able to view the applet from any computer, so long as the file server program is running on sirah.