Writing a custom data marshaller

Camel supports a pluggable ability to translate messages to and from binary and text formats through a feature called Data Formats. Data Formats are an implementation of the Message Translator Enterprise Integration Pattern.

Writing a custom data marshaller

Camel's libraries include a number of Data Formats, such as JAXB, JSON, CSV, HL7, Base64, Crypto, Gzip, and so on. This recipe describes how to write your own Data Format for instances when you need more than what Camel provides out of the box.

This recipe will show you how to create your own Data Format implementation that can be easily shared across your Camel routes.

Getting ready

The Java code ...

Get Apache Camel Developer's Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.