11.12. Remote Object Activation

One of the chief disadvantages of using RMI for large and complex systems is the amount of overhead generated by RMI server software. Suppose you are constructing a massive system, with many different RMI service interfaces and server implementations. In such a system, each server would have to be running continually, even if it was seldom used by client software. Servers must create and export remote objects that implement RMI service interfaces, which consumes memory and CPU time. If each implementation is created as a separate server, this means that there will be as many JVM instances as there are services (unless all servers are combined into one, which is a messy solution and still wastes memory, as an instance ...

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.