You need to remove the message header which is start with “rabbitmq.” just like this <from xxx/> <removeHeaders pattern=“rabbitmq.*”/> <to xxx/>
-- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On December 5, 2013 at 11:19:29 PM, muthukumara...@gmail.com (muthukumara...@gmail.com) wrote: > >Hi > >I am using Camel 2.12.1 and Rabbitmq 3.2.1 > >I have defined the following route in my spring config and every time I send >a message to "general.topic" I would expect the message would end up in >"scheduler.queue" > >But this doesn't happen it puts the message back to "general.queue" in a >loop. I send only one message to "general.topic" it keeps putting the same >message multiple times in the "general.queue" until I stop the Camel server. > >/ > > >>uri="rabbitmq://localhost/general.topic?queue=general.queue&routingKey=general.queue&exchangeType=topic&username=guest&password=guest&autoDelete=false&durable=true" >/> >>uri="rabbitmq://localhost/scheduler.topic?queue=scheduler.queue&routingKey=scheduler.queue&exchangeType=topic&username=guest&password=guest&autoDelete=false&durable=true" >/> > >/ > >If I change the "to" route as "/>uri="log:com.mycompany.order?level=INFO"/>/" >it logs the message properly in >the log and only once. > >Any help or suggestions?. > >Thanks. >Muthu > > > > > > >-- >View this message in context: >http://camel.465427.n5.nabble.com/camel-rabbitmq-tp5744371.html >Sent from the Camel - Users mailing list archive at Nabble.com. >