<p>Yes. It turned out spring-amqp closes the channel on each operation, and that automatically rejects messages.</p>
<div class="gmail_quote">On Oct 24, 2011 12:56 PM, "Marek Majkowski" <<a href="mailto:majek04@gmail.com">majek04@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Fri, Oct 21, 2011 at 15:57, Marek Majkowski <<a href="mailto:majek04@gmail.com">majek04@gmail.com</a>> wrote:<br>
> On Fri, Oct 21, 2011 at 15:39, Bozhidar Bozhanov<br>
> <<a href="mailto:bozhidar.bozhanov@gmail.com">bozhidar.bozhanov@gmail.com</a>> wrote:<br>
>> That one I figured out myself :) but what could it be, given default<br>
>> setup, and the above code?<br>
><br>
> There is not much to be said about given code.<br>
> Can you supply us with a runnable code?<br>
<br>
Bozhidar,<br>
<br>
Were you able to locate the problem?<br>
<br>
If not, let me elaborate my previous email :)<br>
<br>
Take a look at the this tutorial:<br>
<a href="http://www.rabbitmq.com/tutorials/tutorial-two-python.html" target="_blank">http://www.rabbitmq.com/tutorials/tutorial-two-python.html</a><br>
<a href="https://github.com/rabbitmq/rabbitmq-tutorials/blob/master/python/worker.py" target="_blank">https://github.com/rabbitmq/rabbitmq-tutorials/blob/master/python/worker.py</a><br>
<br>
Although it doesn't use `basic.get` (it uses `basic.consume`) and it<br>
uses `basic.ack`.<br>
<br>
Here is an example with `basic.get`:<br>
<a href="https://github.com/pika/pika/blob/master/examples/blocking/demo_get.py" target="_blank">https://github.com/pika/pika/blob/master/examples/blocking/demo_get.py</a><br>
<br>
This examples do work.<br>
<br>
In order to help you we need to see a wider context of your<br>
app. It would be great if you could reduce your app<br>
to few dozen lines and supply us with the code. Only<br>
then we would be able to give you a hand.<br>
<br>
Cheers,<br>
Marek<br>
</blockquote></div>