11.9. Remote Method Invocation Packages and Classes

Now that you're familiar with the basics of RMI and how to write an RMI service, server, and client, let's look at the packages and classes that comprise the RMI subset of the Java API.

11.9.1. Packages Relating to Remote Method Invocation

Five packages deal with RMI. The two most commonly used are java.rmi and java.rmi.server, but it's important to be aware of the functionality provided by the remaining three.

  1. java.rmi— defines the Remote interface, classes used in RMI, and a number of exceptions that can occur at runtime.

  2. java.rmi.activation— introduced in the Java 2 platform, this package supports “activation” of remote services. Activation allows a service to be started on demand, rather ...

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.