[rabbitmq-discuss] Remove All bindings for a queue - Or list bindings - .NET Client
Simon MacMullen
simon at rabbitmq.com
Tue Jun 26 18:20:08 BST 2012
On 26/06/12 14:05, Thiago Burgo Belo wrote:
> How you said, each client need to get its own set of messages, but I
> need which messages survive to client disconnect and the client can
> change the binds to filter messages based on headers (Exchange Headers).
Oh, I see.
> Has a way to unbind (using UnbindQueue method in .NET) to Unbind all
> queue binds (an wildcard for example)?
Not directly. But you can do what we do in the federation plugin - use
an intermediate exchange.
So you have a well-known headers exchange. Each client then declares its
own fanout exchange and a queue. It then binds the queue to the fanout
exchange, and the fanout exchange to the headers exchange with whatever
bindings it wants.
Thus far it's just the same as binding directly to the headers exchange.
Except that if your client deletes the intermediate exchange and
recreates it, you then have effectively unbound everything.
Cheers, Simon
--
Simon MacMullen
RabbitMQ, VMware
More information about the rabbitmq-discuss
mailing list