Hi

Its the type converter that can kick in and can convert JAXB objects
if you have camel-jaxb on the classpath
http://camel.apache.org/type-converter.html



On Tue, Mar 22, 2011 at 12:57 PM, Leonard Axelsson
<[email protected]> wrote:
> Hi,
>
> At my current gig we have a route roughly like the one below where we send
> in objects using the ProducerTemplate. Those are marshalled into xml using
> JAXB (annotations) and then sent on to a JMS queue.
>
> jaxb = new JaxbDataFormat("com.entraction.elp.api.message");
>
> from("direct:in")
>    .marshal(jaxb)
>    .to("jms:someQueue")
>
>
> What I found by mistake was that the route worked even if I remove the
> marshalling step. The object will automatically, it seems, be marshalled. My
> questions is, is this the right behaviour and if it is, where is this
> feature documented? Automatic marshalling is nice, but I would like to know
> for sure that it's intended and not a side effect of something else we do.
>
> Regards,
> /Leo
>
> ---------------------------------------------------------
> Leonard Axelsson
> Agical AB
>
> E-mail: [email protected]
> Blog: http://xlson.com/
> Twitter: xlson
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to