Bluelock / camel-spring-amqp

Spring AMQP Component for Apache Camel
61 stars 53 forks source link

Headers Exchange producer route does not work. Please provide an example. #13

Closed apirani closed 12 years ago

apirani commented 12 years ago

Based on headers exchange consumer example I tried to create a route for headers exchange producer using different syntax for specifying headers, but it does not seem to work. Please provide an example for headers exchange producer.

I have already tried to use spring-amqp:myHeaderExchange:'':cheese=gouda and spring-amqp:myHeaderExchange:qName:cheese=gouda but they do not work.

apirani commented 12 years ago

Solution: The header cheese need to be set as http header in camel with a value "gouda". Once the http header is set, producer route with exchange name set to correct exchange name works.