RPC Example
DS Tutorial-8 (RMI)
Creating a Simple RMI application
involves following steps
● Define a remote interface
● Implementing remote interface
● create and start remote application
● create and start client application
Define a remote interface
AddServerInterface.java
Implementing remote interface
Adder.java
create and start remote application
AddServer.java
create and start client application
Client.java
Compilation Step
javac *.java
Execution Step (1/3)
Start RMI registry
Terminal - 1
Oracle-Java-8
JOSS 4
In Windows OS: start rmiregistry
Execution Step (2/3)
Terminal - 2
Execution Step (3/3)
Terminal - 3