Reputation: 107
Is it possible to change the routing key of an existing queue in RabbitMQ using a Java client?
Upvotes: 3
Views: 1852
Reputation: 72868
a queue does not have a routing key. a queue is just a place where messages sit.
the routing key lives in the binding between an exchange and a queue
you need to create a new binding between your exchange and queue, and delete the old binding if you no longer need it
Upvotes: 4