I am trying to setup a variety of exchanges and queues in RabbitMQ via a script calling rabbitmqadmin. While I can declare a queue, I am not able to find any way to send 'x-dead-letter-exchange' or 'x-dead-letter-routing-key' arguments in the declaration. Is this possible?
Yes, this is possible by specifying JSON in 'arguments' argument:
call rabbitmqadmin.py declare queue name=MyQueue arguments={\"x-dead-letter-exchange\":\"MyExchange\",\"x-dead-letter-routing-key\":\"MyRoutingKey\"}
Note: this is except from Windows batch file. (on other OS some syntax might be different)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With