RMI (Remote Method Invocation)

  1. server program (resides on the server)- a remote object is created and reference of that object is made available for the client (using the registry).
  2. client program (resides on the client)- requests the remote objects on the server and tries to invoke its methods.

RMI Architecture

  • Transport Layer − Connection between client and server. It controls the existing connection and new connections.
  • Stub − A stub is a representation (proxy) of the remote object at client. It resides in the client system; it acts as a gateway for the client program.
  • Skeleton − This is the object which resides on the server side. stub communicates with this skeleton to pass request to the remote object.
  • RRL(Remote Reference Layer) − It is the layer which manages the references made by the client to the remote object.

Requirements for the distributed application

  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 rmi registry tool
  5. Create and start the remote application
  6. Create and start the client application

Step 5

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

MuleSoft — Week 1 — Designing APIs

Using rails config in gem

Upgrading the Monoliths

The 1–2–3s of bringing dark theme to your Android app

Swift WebSockets

From Docker Images -> Docker Container

Java vs Kotlin, which is better for Android Application Development?

Alpha release scheduled for January 2022

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Paul issack minoltan

Paul issack minoltan

More from Medium

KRUSKAL’S MINIMUM SPANNING TREE ALGORITHM.

CS 373 Spring 2022 — Week 4

Top Interview questions of Sql