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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access