Java Remote Method Invocation (Java- RMI)

Java RMI stands for Remote method invocation. This technology is used for communication purposes of java virtual machines which are situated remotely. RMI method can invoke those remote methods in other machines and can transfer objects and can provide remote services as well. Protocols areconstantly used for communication where it sets standards for load objects dynamically as the request arrives. It enables the transmission of multiple objects at once which include codes that can change the service configurations and functionalities.

https://www.tutorialspoint.com/java_rmi/java_rmi_introduction.htm

RMI has its own architecture which is divided as layer-wise. It includes layers such as remote reference layer, stub layer and skeleton layer, transport layer, etc. Those layers have a certain job to perform to make RMI method a success. For example, the transport layer handles all the transmission of data and the requests, the remote reference layer identifies which service to call and make a skeleton matching for the request’s stub. RMI methods are advantageous because of its security, maintainability, easy to code and reusability, etc. The server is protecting itself by using a registry which is open to the client but not its location and the underlying implementation.

Example code is executed to identify its concepts thoroughly. I have used the same components and files given as the example of Java RMI. It contains classes for clients and servers and interfaces as well as its implementations. Firstly, had to compile the java files and generated compiled files through command prompt then started the registry of the server. After that started the server and then executed the client end. It successfully executed as a java application without any errors that gave the result on the console.

BSc. (Hons.) in Software Engineering | University of Kelaniya, Sri Lanka