[rabbitmq-discuss] .BasicReject(tag, false) & BasicAck

Emile Joubert emile at rabbitmq.com
Mon Feb 6 13:21:24 GMT 2012

Hi Steven,

On 06/02/12 11:54, Steven Taylor wrote:
> BasicReject(deliveryTag, false) seems to be requing the
> message (probably due to having acknowledgements set). 

I'm not able to reproduce this. Rejecting without requeue drops the message.

> So, should I
> also acknowledge a message I'm about to reject? 

No, you cannot reject a message after acknowledging it.

> Does BasicReject send an asynchronous message back to sender when
> mandatory=true?

No, the "mandatory" parameter relates only to routing, i.e. whether the
message was routed to a queue. Subsequent actions by consumers cannot
cause return messages to be sent to publishers. Also see


More information about the rabbitmq-discuss mailing list