Hi

See this FAQ
http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html

In the future we most likely should remove the setOutXXX in the DSL as
they are not usable and adds to the confusion.
People should generally just use setBody / setHeader / transform, and
the Camel DSL figures it out.



On Mon, Jan 30, 2012 at 2:17 PM, Willem Jiang <willem.ji...@gmail.com> wrote:
> Hi,
>
> setOutHeader doesn't copy the message body, you'd better use the setHeader
> to that kind of job.
>
>
> On Mon Jan 30 20:59:18 2012, marnold wrote:
>>
>> I played around with custom TypeConverters with no luck.  I couldn't
>> understand the messageConverter documentation and wanted to avoid all
>> things
>> Spring.
>>
>> On a whim I removed the<setOutHeader>  and found I was right in that the
>> payload is automatically converted to the JMS message body.  For some
>> reason
>> the presence of the<setOutHeader>  clears the message body.  If I use
>> <setHeader>  (rather than<setOutHeader>), I retain the message body and
>> have
>> the JMSCorrelationID set appropriately.
>>
>> --
>> View this message in context:
>> http://camel.465427.n5.nabble.com/Camel-route-JMS-SOAP-JMS-tp5430745p5441339.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>
>
>
> --
> Willem
> ----------------------------------
> FuseSource
> Web: http://www.fusesource.com
> Blog:    http://willemjiang.blogspot.com (English)
>        http://jnn.javaeye.com (Chinese)
> Twitter: willemjiang Weibo: willemjiang



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to