[rabbitmq-discuss] exchanges properties modification and get message count from a queue

Matthew Sackman matthew at rabbitmq.com
Tue May 10 16:26:59 BST 2011


On Tue, May 10, 2011 at 08:21:18AM -0700, Alfonso Pantoja wrote:
> I'd would like to know if there is a way to modify an exchange
> properties without delete and re-create it again.

Nope.

> In our case we have existing exchanges with queues binded to them.
> Having into account that if a exchange is deleted all its bindings are
> deleted too automatically I'm wondering how  exchange arguments can be
> modified in order to attach an alternate exchange and without stopping
> all publishers (because if there is no exchange messages sent to it
> will fail while it does not exist)

You can't. You must specify the alternate exchange when you create the
exchange.

> Using .NET API is it possible to get the number of messages of a queue
> and/or other properties such as binding outing keys, etc.?

Msgs in the queue will be available from the result of redeclaring a
queue. It is not possible to find out how many bindings there from an
exchange or to a queue.

Best wishes,

Matthew


More information about the rabbitmq-discuss mailing list