Google Search

Saturday, October 24, 2015

Explain the steps involved in creating a distributed application using Remote Method Invocation (RMI).

Remote method invocation (RMI) allow a java object to invoke method on an object running on another machine. RMI provide remote communication between java program. RMI is used for building distributed application.
This is 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

No comments:

Post a Comment