Skip to content

fierascu/java-rmi-example

Repository files navigation

java-rmi-example

java-rmi-example is an example of RMI.

Installation

Extracted from javatpoint.com/RMI.

Java RMI Example The is given the 6 steps to write the RMI program.

  1. Create the remote interface
  2. Provide the implementation of the remote interface
  3. Compile the implementation class and create the stub and skeleton objects using the rmic tool
  4. Start the registry service by rmiregistry tool
  5. Create and start the remote application
  6. Create and start the client application

For running this rmi example

  1. compile all the java files
javac *.java
  1. create stub and skeleton object by rmic tool
rmic AdderRemote  
  1. start rmi registry in one command prompt
rmiregistry 5000
  1. start the server in another command prompt
java MyServer
  1. start the client application in another command prompt
java MyClient

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages