[rabbitmq-discuss] Custom error message for basic reject
Emile Joubert
emile at rabbitmq.com
Tue Apr 10 10:35:57 BST 2012
Hi,
On 05/04/12 18:22, Nazakat Ali wrote:
> If not possible with basic reject, is it possible to refuse/not acknowledge a message with reason?
Unfortunately not. None of the relevant methods allow you to provide a
reason, or modify the message in any way:
http://www.rabbitmq.com/amqp-0-9-1-reference.html#basic.nack
http://www.rabbitmq.com/amqp-0-9-1-reference.html#basic.reject
http://www.rabbitmq.com/amqp-0-9-1-reference.html#basic.recover
The closest approximation to your requirement would be to acknowledge
the message and to republish with a header that describes the reason.
-Emile
More information about the rabbitmq-discuss
mailing list