camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: What's the policy on forwarding headers in camel components ?
Date Sat, 26 Mar 2011 10:23:54 GMT
See this FAQ
http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html


On Wed, Mar 23, 2011 at 8:50 AM, Willem Jiang <willem.jiang@gmail.com> wrote:
> Yes, in most component which supports the InOut message exchange patten, we
> just copy the in message headers to out message headers.
>
>
> On 3/23/11 3:44 PM, Sorin Silaghi wrote:
>>
>> Hello,
>>
>>
>>            Any feedback on this ?
>>
>>
>> Sorin.
>>
>> On Mon, Mar 21, 2011 at 1:20 PM, Sorin Silaghi<sorin7486@gmail.com>
>>  wrote:
>>>
>>> Hello,
>>>
>>>        I'm working with a custom camel component that doesn't forward
>>> the headers and this breaks my route. I noticed most camel components
>>> do this but I looked at the file component and couldn't tell exactly
>>> where it happens.
>>>
>>>        So my question is what's the default behaviour ? If I just
>>> copy all the headers from "in" to "out" is that ok? For the moment I
>>> added the folowing line to the custom processor but I'm not sure if
>>> this is the right way to do it:
>>>
>>>        exchange.getOut().setHeaders(exchange.getIn().getHeaders());
>>>
>>>
>>> thanks,
>>>           Sorin.
>>>
>>
>
>
> --
> Willem
> ----------------------------------
> FuseSource
> Web: http://www.fusesource.com
> Blog:    http://willemjiang.blogspot.com (English)
>         http://jnn.javaeye.com (Chinese)
> Twitter: willemjiang
>



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

Mime
View raw message