EE-WES Remote Method Invocation (RMI)

Note: the idea of remote procedure call is very important. However, this demo, and simplified technolgoy of RMI is already outdated. It is kept only for the sake of having a very simple demo.

demo.bat

REM Prepare server...
javac WeatherServerInterface.java
javac WeatherServer.java
rmic  WeatherServer
REM Copy the stub class created by rmic to the client location

REM Start RMI Server...
REM add current directory to the CLASS PATH for RMI Server
set   CLASSPATH=c:\progra~1\java\jre\lib\rt.jar;.
start rmiregistry

REM Start Server...
start java -Djava.security.policy=permit.txt WeatherServer

REM Prepare and Run Client to test the server...
javac RMIdemo.java
java  RMIdemo

rerun_client.bat

java RMIdemo

web site front local main page local list page general bookmarks software bookmarks go back copyright info