O'Reilly logo

java.rmi: The Remote Method Invocation Guide by Kathleen McNiff, Esmond Pitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Serialization

  • Introduction—Essentials—Serialization in depth—Serialization process—Serializable interface—Externalizable interface—MarshalledObject—Class versioning—Serial version UID—Alternative approaches to versioning—Advanced facilities—javadoc and serialization—Performance—Exercises

In this chapter

Java Serialization is used by RMI to marshal and unmarshal arguments and results. This process is largely handled by the RMI system and Java, but the RMI developer must contribute. If serialization is not addressed, your remote methods may not work at all—a stumbling block for many developers new to RMI; and relying on default serialization can make an RMI program run unacceptably slowly.

The first section of this chapter provides the essentials ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required