Reputation: 14443
If i have a InOut route like,
from("activemq:queue:MY_QUEUE")
.process(this.processor1)
.to("ahc:http:\\abc.com/v1/post/id=123")
.process(this.processor2);
How can i ensure that only specific HTTP headers (e.g., Accept, Authorization, Content-Type) are passed to ahc component whereas JMS header (JMSReplyTo) are propagated until end of the route ?
Upvotes: 1
Views: 3021
Reputation: 1641
When you process exchange in your processor1 just set all required headers/body not to "exchange.getIn()..." but to the "exchange.getOut().."
More details can be found in the documentation http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html
Upvotes: 1