Boon (v2.16 onwards)
Boon is a Data Format which uses the Boon JSON marshalling JSON marshalling library to unmarshal an JSON payload into Java objects or to marshal Java objects into an JSON payload. Boon aims to be a simple and and fast parser than other common parsers currently used.
Using the Java DSL
Code Block |
---|
DataFormat boonDataFormat = new BoonDataFormat("com.acme.model.Person"); |
...
from("activemq:My.Queue") |
...
.unmarshal(boonDataFormat) |
...
.to("mqseries:Another.Queue"); |
Using Blueprint XML
Code Block |
---|
<bean id="boonDataFormat" class="org.apache.camel.component.boon.BoonDataFormat"> |
...
<argument value="com.acme.model.Person"/> |
...
...
<camelContext id="camel" xmlns="http://camel.apache.org/schema/blueprint"> |
...
...
<from uri="activemq:My.Queue"/> |
...
<unmarshal ref="boonDataFormat"/> |
...
<to uri="mqseries:Another.Queue"/> |
...
...
Dependencies
...
<groupId>org.apache.camel</groupId> |
...
<artifactId>camel-boon</artifactId> |
...
...