java.rmi: The Remote Method Invocation Guide (often referred to by developers as the definitive guide to Java RMI) is a seminal technical book written by Eamonn Pitt and Kathleen McNiff. Published by Addison-Wesley, it remains one of the most exhaustive resources for mastering distributed computing in Java.
The book is structured to bridge the gap between official Java specifications and practical, real-world deployment challenges. Core Architecture Covered
The guide meticulously maps out how Java RMI enables an object in one Java Virtual Machine (JVM) to invoke methods on an object in another JVM:
The Stub and Skeleton Layer: Explains how the client-side stub acts as a proxy for the remote object. It intercepts local method calls and handles the underlying network logistics.
The Remote Reference Layer (RRL): Details the protocols managing communication semantics, such as point-to-point invocation or replication.
The Transport Layer: Breaks down how the system sets up connections, manages channels, and listens for incoming data using the Java Remote Method Protocol (JRMP). Key Technical Concepts Addressed
The book is highly regarded for its deep dive into advanced, production-grade RMI features:
Object Serialization: Concrete breakdowns of how parameters and return values are marshaled (flattened into byte streams) and unmarshaled across the wire.
The RMI Registry: Step-by-step guidance on how servers bind object references to a naming directory, and how clients query that registry to acquire remote interfaces.
Dynamic Code Loading: Insights into how RMI dynamically streams compiled Java class files across a network when an object type isn’t locally present.
Enterprise Customization: Advanced implementations including custom socket factories (like running RMI over SSL/TLS), managing firewalls, and utilizing Distributed Garbage Collection (DGC). Why It Became a Developer Staple Semantic Scholar
java.rmi: The Remote Method Invocation Guide – Semantic Scholar
Leave a Reply