11.13. Summary

Remote method invocation (RMI) is a distributed systems technology that allows object methods located in remote Java Virtual Machines (JVMs) to be invoked remotely. This is often a simpler way of communicating between one application and another than direct TCP socket communication, which requires both parties to adhere to a network protocol. Instead of writing protocol implementations, developers interact with object methods defined by an RMI service interface. Once a reference to a remote object has been obtained, it can be treated just like a local object, which is a more intuitive way of developing network applications.

Chapter Highlights

In this chapter, you have learned:

  • How to define a remote method invocation service

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.