Re: rabbitmq component headers

2016-09-21 Thread Ismail Emre Kartoglu
Sorry, I’ve switched to using the camel & rabbitmq-component version 2.17.3 (latest in maven central repo), and my initial issue does not exist with this version. Now I have a slightly different question: from("rabbitmq://localhost/A?username=guest=guest=B=1=false")

Re: rabbitmq component headers

2016-09-20 Thread Ismail Emre Kartoglu
Thanks Willem. The documentation says the URI should look like: rabbitmq://hostname[:port]/exchangeName?[options] So I do have the exchange name in the URI in my example. See http://camel.apache.org/rabbitmq.html Sent from phone On 21 Sep 2016 1:49 a.m., "Willem Jiang"

Re: rabbitmq component headers

2016-09-20 Thread Willem Jiang
You should add the exchangeName parameter to the rabbitmq uri if you don’t want to specify the message header there. -- Willem Jiang Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On September 21, 2016 at 5:14:54 AM,

Re: rabbitmq component headers

2016-09-20 Thread Willem Jiang
Even you specify the routingKey in the rabbitmq uri, camel cannot find out the exchange name without checking it from message header. So you cannot comment out the exchange name setting part.  -- Willem Jiang Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese)

rabbitmq component headers

2016-09-20 Thread Ismail Emre Kartoglu
Hello Camel users, I have a question regarding the camel-rabbitmq component. The following code sends the message “test” to exchange “A” with routing key “B” every 5 seconds: from("timer:test?period=5000").process(new Processor() { @Override public void