Hi,
you can something like
Assuming JAXB
DataFormat jaxbDataFormat = new
JaxbDataFormat(ObjectFactory.class.getPackage().getName());
where ObjectFactory will be in your generated classes.
.from("direct:start")
.unmarshal(jaxbDataFormat)
.process(new SomeProcessor())
.end();
Similarly you can marshal back.
Checkout the link below Camel Data Format
<http://camel.apache.org/data-format.html>
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-pass-multiple-custom-objects-to-processor-tp5754502p5754539.html
Sent from the Camel - Users mailing list archive at Nabble.com.