Using Java RMI

Invoking a remote object requires information to be gathered about that remote object. Rather than require that information to be deployed with every component that wishes to invoke the remote object, Java RMI allows a remote object to be located in a registry and the information about the object—itself encapsulated in an object—can be retrieved from the registry. Retrieving an object may involve not just serializing the object and its members, but loading classes that are not local to the client invoking the remote object. For this reason, Java RMI allows remote classes to be loaded as part of the object retrieval process.

To create a remotely invoked object, the server and client interfaces for the objects must be identified. ...

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.