THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
from("file://foo/bar"). unmarshal().serialization(). marshal("jaxb"). to("activemq:Some.Queue"); |
Using Spring XML
This example shows how to configure the data type just once and reuse it on multiple routes
Wiki Markup |
---|
{snippet:id=example|lang=xml|url=activemq/camel/trunk/components/camel-jaxb/src/test/resources/org/apache/camel/example/marshalAndUnmarshalWithRef.xml} |
You can also define reusable data formats as Spring beans
Code Block |
---|
<bean id="myJaxb" class="org.apache.camel.model.dataformat.JaxbDataFormat">
<property name="prettyPrint" value="true"/>
<property name="contextPath" value="org.apache.camel.example"/>
</bean>
|