11.2. How Does Remote Method Invocation Work?
Systems that use RMI for communication typically are divided into two categories: clients and servers. A server provides an RMI service, and a client invokes object methods of this service.
RMI servers must register with a lookup service, to allow clients to find them, or they can make available a reference to the service in some other fashion. Included as part of the Java platform is an application called rmiregistry, which runs as a separate process and allows applications to register RMI services or obtain a reference to a named service. Once a server has registered, it will then wait for incoming RMI requests from clients. Figure 11-2 illustrates services registering with a single RMI registry. ...
Get Java™ Network Programming and Distributed Computing now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.