Java RMI

Dynamic Code Downloading of Arguments

Downloading RMI stubs
  1. If its a primitive type, there is nothing to do.
  2. If its an object whose class in on the remote object's CLASSPATH, then it loads it from there.
  3. If its not on the CLASSPATH then the object must be either an implementation of the interface that is declared as the method parameter or a subclass of the class that is declared as method parameter. (Why? Otherwise it would not have compiled.) It gets downloaded from the codebase.

José M. Vidal .

13 of 22