O'Reilly logo

Mastering Apache Camel by Jean-Baptiste Onofré

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

Data format

Camel supports a pluggable data format allowing you to marshall and unmarshall the messages.

For instance, if you receive an XML message from an endpoint, you can:

  • Directly manipulate and transport the XML message in the route
  • Translate the XML to a POJO using JAXB, for instance, JAXB is a data format

Unmarshalling allows you to use a data format to convert from a raw format (XML in the previous example) into a Java object. On the other hand, when you send an exchange to an endpoint, you can marshall the transported object into another format. You specify where you want to unmarshall or marshall and the data format to use.

For instance, you can consume an XML message from a JMS queue, unmarshall using JAXB, and send the resulting object ...

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