| [[hessian-HessianDataFormat]] |
| Hessian DataFormat |
| ~~~~~~~~~~~~~~~~~~ |
| |
| Hessian is Data Format for marshalling and unmarshalling messages using Caucho's Hessian format. |
| |
| If you want to use Hessian Data Format from Maven, add the following dependency to your `pom.xml`: |
| |
| [source,xml] |
| ------------------------------------------------------------ |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-hessian</artifactId> |
| <version>x.x.x</version> |
| <!-- use the same version as your Camel core version --> |
| </dependency> |
| ------------------------------------------------------------ |
| |
| |
| [[hessian-UsingHessianDataFormat]] |
| Using the Hessian data format in Java DSL |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| |
| [source,java] |
| -------------------------------------------------------------------------------- |
| from("direct:in") |
| .marshal().hessian(); |
| -------------------------------------------------------------------------------- |
| |
| [[hessian-UsingHessianDataFormatXml]] |
| Using the Hessian data format in Spring DSL |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| |
| [source,xml] |
| -------------------------------------------------------------------------------- |
| <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> |
| <route> |
| <from uri="direct:in"/> |
| <marshal ref="hessian"/> |
| </route> |
| </camelContext> |
| -------------------------------------------------------------------------------- |