Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Serialization

Serialization is a Data Format which uses the standard Java Serialization mechanism to unmarshal a binary payload into Java objects or to marshal Java objects into a binary blob.
For example the following uses Java serialization to unmarshal a binary file then send it as an ObjectMessage to ActiveMQ

Code Block
from("file://foo/bar").
  unmarshal().serialization().
  to("activemq:Some.Queue");

Dependencies

This data format is provided in camel-core so no additional dependencies is needed.