[rabbitmq-discuss] BasicReject(deliveryTag, false) message stays in queue..

Emile Joubert emile at rabbitmq.com
Tue Aug 6 13:37:55 BST 2013


On 06/08/13 13:15, Burtsev Aleksey wrote:

> try
> {
> HandleMessage(qMessage);
> channel.BasicAck(qMessage.DeliveryTag)


You have to acknowledge the message on the same channel that it was
received on. It is not clear from your description whether you are doing
this correctly. Check the broker logfile after an error.

You are assuming that the channel is still open after an exception, but
it might not be. You might consider registering for connection and
channel shutdown events. See RabbitMQ.Client.Examples.ExceptionTest for
an example.


-Emile






More information about the rabbitmq-discuss mailing list