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<sorin7...@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