Remote Method Invocation

Definition & Meaning

RMI meaning

Last updated 23 month ago

What is Remote Method Invocation (RMI)?

What does RMI stand for?

Remote Method invocation (RMI) is a allotted Object era developed by means of Sun for the JavA Programming Language. It is to be had as a part of the center Java Application Programming Interface (API) wherein the object Interfaces are defined as Java interfaces and use object Serialization.

RMI lets in Java methods to consult a remote item and invoke techniques of the far off item. The remote object can also are living on another Java Digital machine, the identical Host or on absolutely specific hosts across the commUnity. RMI marshals and unmarshals method arguments via item serialization and supports dynamic Downloading of sophistication documents across Networks.

What Does Remote Method Invocation Mean?

Remote technique invocation turned into first introduced in Java Development Kit (JDK) 1.1 and is sigNiFicantly used in allotted object Computing. It perForms the object-orientated equivalence of far flung Procedure calls. RMI Functionalities are available a java.Rmi Package and provide a disbursed item functionality for Java-primarily based programs.

RMI architecture extends the roBustness and protection of Java architecture to the disbursed computing global. RMI lets in the that Code defines and implements the behavior to remain on extraordinary Java Virtual Machines. Remote offerings in RMI are coded using a Java interface where the Implementation is coded in a category. In the first magnificence, implementation of the conduct runs at the Server. The 2d elegance runs at the patron and acts as a proxy for the far off Carrier.

RMI implementation is Constructed from three summary Layers – the Stub and skeleton layer, the remote reference layer and the Transport Layer. The stub and skeleton layer is simply underneath the View of the Developer. Stub and skeleton gadgets are used to offer a connection between the Client and remote object. A stub Forwards approach invocations from the customer to the server and is aware about the way to communicate with the stub across the Hyperlink. Therefore, it acts as a proxy where the far flung object implementation resides. Reference to the far off object by way of a consumer is literally a connection with the neighborhood stub. The consumer houses a nearby reproduction of the stub object. Skeletons keep strategies, which disPatch calls to far flung object implementation.

The steps in designing an RMI Software are:

  1. Define faraway interfaces and enforce customer and far off objects.
  2. Compile the source and generate stubs and skeletons.
  3. Make required elegance networks on hand.
  4. Run the utility.

Share Remote Method Invocation article on social networks

Your Score to Remote Method Invocation article

Score: 5 out of 5 (1 voters)

Be the first to comment on the Remote Method Invocation

8233- V4

tech-term.com© 2023 All rights reserved