RMI (Remote Method Invocation) Java

  1. The client-side runtime opens a connection to the server using the host and port information in the remote object’s stub and then serializes the call data.
  2. The server-side runtime accepts the incoming call, dispatches the call to the remote object, and serializes the result (the reply string) to the client.
  3. The client-side runtime receives, deserializes, and returns the result to the caller.
  4. The response message returned from the remote invocation on the remote object is then printed to System.out.

--

--

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