I have two unacknowledged messages in a queue which need to be redelivered. I did a research and have seen that I need to use basic.recover
or basic.nack
however I don't really know how to use them since my RabbitMQ knowledge is one day old. Could please someone show me the way of using these options? I couldn't find any example.
Note: Probably irrelevant but I'm using Symfony2 app with RabbitMqBundle on MAC OSX.
$ rabbitmqctl list_queues name messages_ready messages_unacknowledged
Listing queues ...
order_create_qu 0 2
I've read How can I recover unacknowledged AMQP messages from other channels than my connection's own? and Ack or Nack in rabbitMQ posts but didn't really work out how to use suggested solutions apart from restarting the server.