[rabbitmq-discuss] How to setup dead-letter queue in C# ?
Matthias Radestock
matthias at rabbitmq.com
Fri Dec 7 10:13:24 GMT 2012
On 07/12/12 09:04, Johan Klijn wrote:
> I am trying to setup a dead-letter queue, but when I reject a message
> it's not passed to the dead-letter queue.
The problem is here:
> channel.QueueDeclare(defaultQueueName,true,false,false,null);
> Hashtable arguments =new Hashtable()
> {
> {"x-dead-letter-exchange","DeadLetterExchange"},
> {"x-dead-letter-routing-key", deadLetterRoutingKey}
> };
> channel.QueueBind(defaultQueueName, defaultExchangeName, defaultQueueName, arguments);
The x-dead-letter-* arguments should be associated with the *queue*
(during declaration) instead of the binding.
Regards,
Matthias.
More information about the rabbitmq-discuss
mailing list