How to rename an Exchange and Queue

1,929 views
Skip to first unread message

Marty Wasznicky

unread,
Feb 26, 2016, 11:32:09 AM2/26/16
to rabbitmq-users
Hello,

we're using .net and we're trying to figure out how to rename an exchange and queue so that messages are not lost in the existing queue.

There doesn't seem to be an API for renaming the objects.  Is there a way to do this?

Michael Klishin

unread,
Feb 26, 2016, 11:37:08 AM2/26/16
to rabbitm...@googlegroups.com, Marty Wasznicky
 On 26 February 2016 at 19:32:12, Marty Wasznicky (marty...@gmail.com) wrote:
> There doesn't seem to be an API for renaming the objects. Is there
> a way to do this?

No.
--
MK

Staff Software Engineer, Pivotal/RabbitMQ


Marty Wasznicky

unread,
Feb 26, 2016, 11:56:19 AM2/26/16
to rabbitmq-users, marty...@gmail.com
ok..so it seems like the only alternative is to delete the existing one and create a new one to replace it. 

is there a way to retrieve all the queues bound to a specific exchange though...so I can rebind them to the new exchange?

dfed...@pivotal.io

unread,
Feb 26, 2016, 1:03:04 PM2/26/16
to rabbitmq-users, marty...@gmail.com

Colin Anderson

unread,
Feb 27, 2016, 3:53:27 AM2/27/16
to rabbitmq-users
Couldn't you use the shovel plugin to move the messages to the new queue?

Michael Klishin

unread,
Feb 27, 2016, 5:18:50 AM2/27/16
to rabbitm...@googlegroups.com, Colin Anderson
On 27 February 2016 at 11:53:31, Colin Anderson (colin.w....@gmail.com) wrote:
> Couldn't you use the shovel plugin to move the messages to the
> new queue?

There is even a (not very visible) button in the management UI that moves messages
by creating a one-off dynamic Shovel. 
Reply all
Reply to author
Forward
0 new messages