Chapter 15. RMI
Remote Method Invocation, RMI, is Java's built-in facility for developing distributed object applications. Chapter 14, "Java Network Programming," showed techniques for low-level, socket-based communication. Sockets are built around sending bytes. RMI provides a way to call methods on objects on other systems. It operates at a higher level of abstraction than socket-based programming, even though RMI does use sockets under the covers. This chapter focuses on basic RMI programming techniques. Four topics are covered in this chapter:
A brief overview of RMI architecture
How to call a remote object's methods
How to call a remote method using a client-side remote object
How to perform remote activation
Get PURE Java™ 2 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.