On 16 July 2010 12:46, Claus Ibsen <[email protected]> wrote:
> Hi
>
> Do you need to use xmlbeans? I would suggest to try out JAXB or XStream
> instead.
I concur with Claus; XmlBeans is a bit sucky, JAXB/XStream is a little
better if you can use it.
Whatever you use though, you can write a method on a bean to do the
transformation yourself...
<bean ref="myBeanName" method="doTransform"/>
Then write
class MyBean {
public String doTransform(SomeType body) { ... }
}
Or if you want to install this conversion method into the type
converter registry and carry on using the <convertBodyTo/>, add
@Converter to the bean & method and add the package to those searched
by Camel on startup as described in "Writing your own Type Converters"
http://camel.apache.org/type-converter.html
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://fusesource.com/