camel-users mailing list archives

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

Mime
View raw message