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.
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.
java.rmi— defines the Remote interface, classes used in RMI, and a number of exceptions that can occur at runtime.
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 ...