[rabbitmq-discuss] default queue for unroutable messages

Alexandru Scvortov alexandru at rabbitmq.com
Tue Aug 31 13:07:54 BST 2010


> It can't be done automatically.

My bad, as Michael pointed out, using an alternate exchange (you'd
probably want a fanout exchange) would be a simpler way to go
client-wise.

Cheers,
Alex

On Tue, Aug 31, 2010 at 12:29:39PM +0100, Alexandru Scvorţov wrote:
> Hi Ovidiu,
> 
> > I would like to tell RabbitMQ to put all the unroutable messages that
> > were sent to an exchange in a "default" queue.
> 
> It can't be done automatically.
> 
> You could do it like this:
>   - set the mandatory and immediate flags on all messages;
>   - the unroutable ones will be basic.return'd;
>   - have the client re-publish every basic.return'd message so that it
>     gets to your dead-letter queue.
> 
> The mandatory flag causes a basic.return if the message wasn't routed to
> a queue.
> 
> The immediate flag causes a basic.return if the message got to some
> queues but there were no consumers waiting for it.
> 
> Hope this helps.
> 
> Cheers,
> Alex
> 
> On Tue, Aug 31, 2010 at 01:56:40PM +0300, Ovidiu Deac wrote:
> > Hello everybody!
> > 
> > I would like to tell RabbitMQ to put all the unroutable messages that
> > were sent to an exchange in a "default" queue.
> > 
> > Is it possible?
> > 
> > thanks,
> > ovidiu
> > _______________________________________________
> > rabbitmq-discuss mailing list
> > rabbitmq-discuss at lists.rabbitmq.com
> > https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss


More information about the rabbitmq-discuss mailing list