This example demonstrate the RMI Addition Application. Well in this application you will use the four java files. List of java files and their code are shown below:
RemoteInterface.java
import java.rmi.*;
|
ServerImplements.java
import java.rmi.*;
|
Server.java
import java.rmi.*;
|
Client.java
import java.rmi.*;
|
Steps for execution:
Step-1
javac RemoteInterface.java
javac ServerImplements.java
Step-2
rmic ServerImplements
This steps create Stub/ Skeleton
Step-3
javac Server.java
javac Client.java
Step-4
Open Two More Consoles. by writing 'start' twice.
Step-5
On first console
rmiregistry
Step-6
On second console
java Server
Step-7
On third console
java Client
This steps can be seen in the following pictures also:




|
Recommend the tutorial |



Ask Questions? Discuss: RMI-Example-2
Post your Comment