[rabbitmq-discuss] RabbitMQ basic.get and acknowledgement

Bozhidar Bozhanov bozhidar.bozhanov at gmail.com
Mon Oct 24 11:13:47 BST 2011


Yes. It turned out spring-amqp closes the channel on each operation, and
that automatically rejects messages.
On Oct 24, 2011 12:56 PM, "Marek Majkowski" <majek04 at gmail.com> wrote:

> On Fri, Oct 21, 2011 at 15:57, Marek Majkowski <majek04 at gmail.com> wrote:
> > On Fri, Oct 21, 2011 at 15:39, Bozhidar Bozhanov
> > <bozhidar.bozhanov at gmail.com> wrote:
> >> That one I figured out myself :) but what could it be, given default
> >> setup, and the above code?
> >
> > There is not much to be said about given code.
> > Can you supply us with a runnable code?
>
> Bozhidar,
>
> Were you able to locate the problem?
>
> If not, let me elaborate my previous email :)
>
> Take a look at the this tutorial:
>    http://www.rabbitmq.com/tutorials/tutorial-two-python.html
>
> https://github.com/rabbitmq/rabbitmq-tutorials/blob/master/python/worker.py
>
> Although it doesn't use `basic.get` (it uses `basic.consume`) and it
> uses `basic.ack`.
>
> Here is an example with `basic.get`:
>   https://github.com/pika/pika/blob/master/examples/blocking/demo_get.py
>
> This examples do work.
>
> In order to help you we need to see a wider context of your
> app. It would be great if you could reduce your app
> to few dozen lines and supply us with the code. Only
> then we would be able to give you a hand.
>
> Cheers,
>   Marek
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20111024/3727046a/attachment.htm>


More information about the rabbitmq-discuss mailing list