Ala
Ala

Reputation: 107

Changing the routing key of an existing queue in RabbitMQ

Is it possible to change the routing key of an existing queue in RabbitMQ using a Java client?

Upvotes: 3

Views: 1852

Answers (1)

Derick Bailey
Derick Bailey

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

Related Questions