Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Boon is a Data Format which uses the Boon 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 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"/>

...


</bean>

...

 

 
<camelContext id="camel" xmlns="http://camel.apache.org/schema/blueprint">

...


  <route>

...


    <from uri="activemq:My.Queue"/>

...


    <unmarshal ref="boonDataFormat"/>

...


    <to uri="mqseries:Another.Queue"/>

...


  </route>

...


</camelContext>

Dependencies

<dependency>
  <groupId>org.apache.camel</groupId>
  <artifactId>camel-boon</artifactId>
  <version>x.x.x</version>
</dependency>