Strangely enough, the following method seems to be working -
template.sendBodyAndHeader(originalConsumer, ExchangePattern.InOnly ,
exchange.getIn().getBody(String.class), USERNAME_TOKEN, username);

But the problem is that I have multiple tokens that I need to set in the
header :(



--
View this message in context: 
http://camel.465427.n5.nabble.com/Header-goes-missing-while-posting-from-a-periodically-polled-consumer-tp5719860p5719898.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to