rabbitmq - Camel Rabbit doesn't allow to set empty routing key when declaring DLX -


i have spring boot application uses camel rabbit consume messages queue. use uri declare queue dead letter exchange, i'm not supplying option deadletterroutingkey want messages going dlx keep original routing key. when application starts throws following error:

caused by: com.rabbitmq.client.shutdownsignalexception: channel error;     protocol method: #method<channel.close>(reply-code=406, reply-text=precondition_failed - invalid arg 'x-dead-letter-routing-key' queue 'entry.paid.erp' in vhost '/': {unacceptable_type,void}, class-id=50, method-id=10) 

is possible configure camel have behavior?

some additional information:

  • camel version: 2.19.1
  • spring boot version: 1.5.4.release
  • example of uri i'm using:

    rabbitmq://server:port/my-exchange     ?connectionfactory=#connectionfactory     &exchangetype=topic     &queue=my-queue     &autoack=true     &durable=true     &autodelete=false     &exclusive=false     &automaticrecoveryenabled=true     &concurrentconsumers=15     &deadletterexchange=dlx-exchange     &deadletterexchangetype=fanout     &deadletterqueue=dlx-queue 
  • when set value deadletterroutingkey application starts no errors.

thanks!


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -