camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: What's the policy on forwarding headers in camel components ?
Date Wed, 23 Mar 2011 07:50:50 GMT
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

Mime
View raw message