You can use the ProducerTemplate sendBodyAndHeaders method.
It will take a map as the headers those you want to send the endpoint.

-- 
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang 
Weibo: willemjiang





On Tuesday, September 25, 2012 at 11:24 AM, anupamsen wrote:

> 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 
> (http://Nabble.com).



Reply via email to