Use a custom TypeConverter.
Sent from a mobile device
Am 21.02.2013 02:52 schrieb "Joe San" :
> Thanks for the reply!
>
> To describe my case more precisely, in my Processor, I get the JAXB object:
>
> MyObj obj = exchange.getIn().getBody(MyObj.class)
>
> obj has fields getOne, getTwo, getThree a
Thanks for the reply!
To describe my case more precisely, in my Processor, I get the JAXB object:
MyObj obj = exchange.getIn().getBody(MyObj.class)
obj has fields getOne, getTwo, getThree and so on
I have to go through those fields and somehow map them to a target object.
Some fields in the
I think you can use the camel-jaxb[1] to marsh the Object into XML and then you
camel-xslt[2] to transform it.
But it could be more easy to write a DataFormat[3] to go through the MyObject
filed and build the XML yourself.
[1]http://camel.apache.org/jaxb.html
[2]http://camel.apache.org/xslt.html