Hello Camel Riders,

I implemented a simple pipeline message pattern and ran across a situation
where I would lose the body of my inbound message as it got forwarded from
one processor to the next. In other words, the exchange.getIn().getBody()
method would return null. I finally narrowed it down to the
exchange.getOut().setHeader() method, which I have listed below. If I
comment out that line, the next processor can get the inbound body. Why
would setting a header in the outbound message affect the inbound message?
Am I doing something wrong?   

...
process(new Processor() {
      public void process(Exchange exchange) throws Exception {                 
  
           ...
           exchange.getOut().setHeader("foo", "bar");
           ...
      }
   }).to("seda:next");

Thanks,
Joe

-- 
View this message in context: 
http://www.nabble.com/Payload-Gets-Nulled-Out-tp23105477p23105477.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.

Reply via email to