Auto-starting RMI Servers with Activation

By default, RMI applications require a remote object to be running in order to accept connections from client applications. If a client application were to attempt to connect to a remote object server that was not running, it would fail.

RMI activation addresses this issue by providing a mechanism for starting remote objects as they are requested. This reduces the load on system resources that would be consumed by running a number of remote objects that were not being used consistently.

But RMI activation is not for all objects. Starting a remote object can take time and would slow the execution of the client program. For remote objects that are used often, starting the object server before it is used ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software 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.