Hessian Data Format provides marshalling an unmarshialling using Hessian protocol developed by Caucho.

Hessian is a platform and language independent, binary serialization protocol.

Available since Camel 2.17

Using Hessian Data Format

Maven setup

Include following dependency in your pom.xml file:

<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-hessian</artifactId>
<version>x.y.z</version>
</dependency>

replacing x.y.z with your version of Camel core.

Java DSL

Marshalling

from("direct:in")
.marshal().hessian();

Unmarshalling

from("direct:back")
.unmarshal().hessian();

Spring DSL

Marshalling

<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="direct:in"/>
<marshal ref="hessian"/>
</route>
</camelContext>

Unmarshalling

<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="direct:back"/>
<unmarshal ref="hessian"/>
</route>
</camelContext>

Dependencies

Hessian Data Format internally relies on Hessian library provided by Caucho

<dependency>
  <groupId>com.caucho</groupId>
  <artifactId>hessian</artifactId>
  <version>4.0.38</version>
</dependency>


© 2004-2015 The Apache Software Foundation.
Apache Camel, Camel, Apache, the Apache feather logo, and the Apache Camel project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
Graphic Design By Hiram