Remote Method Invocation (RMI)

Remote Method Invocation (RMI) allows a java object that executes on one machine to invoke a method of a Java object that executes on another machine. This is an important feature, because it allows you to build distributed applications, While a complete discussion of RMI is outside the scope of this book, the following example describes the basic principles involved.

A Simple Client/Server Application Using RMI

This section provides step-by-step directions for building a simple client/server application by using RMI. The server receives a request from a client, processes it, and returns a result, In this example, the request specifies two numbers. The server adds these together and returns the sum.

[vfb id=1]

Share This