what is use of MarshalledObject in RMI

Prasath Thirumoorthy

Ranch Hand

Posts: 65

posted 13 years ago

Hi Friends just now i started learning RMI and now im reading the java.rmi package and now i know how to create an remote interface and the class implementing that remote interface and how to create RMI client/server and to run the system also i want to know the use of MarshalledObject class

The article "Jini-like discovery for RMI" on JavaWorld gives an example of using the MarshalledObject class. A MarshalledObject makes it possible to pass a serialized class along with a reference to where their codebase is located. The article explains situations in which you may want to do this.