I was able to accomplish the goal by using RoutePolicySupport.

When an Exchange begins, I store the Exchange in a ThreadLocal variable on a
singleton class, which is defined as a @Bean and injected where needed. 
Before I store the Exchange, I check to see if there is an existing one
already in the ThreadLocal variable.  If so, I pull the headers from the
existing Exchange and set them on the new one.

When the Exchange ends, I clear the Exchange in the ThreadLocal variable.




--
View this message in context: 
http://camel.465427.n5.nabble.com/Passing-Headers-to-a-Route-Invoked-via-Proxy-tp5752894p5752982.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to