[rabbitmq-discuss] basic design question
Isaac Cambron
icambron at gmail.com
Wed Apr 22 16:57:59 BST 2009
Thanks! Works like a charm.
As a side note, noAck seems like a counter-intuitive name. I expected
noAck=flase to mean a double negative, telling the server to automatically
ack.
-Isaac
On Wed, Apr 22, 2009 at 2:29 AM, Matthias Radestock <matthias at lshift.net>wrote:
> Isaac,
>
> Isaac Cambron wrote:
>
>> I did get the tip revision to work
>>
>
> Careful. Please make sure you use the default branch, i.e. do
> hg update -C default
>
> ch.BasicConsume("myqueue", true, null, consumer);
>> ch.BasicQos(0, 1, false);
>>
>
> There's your problem:
>
> 1) I wrote "set the basic.qos prefetch count to 1, *and then* subscribe to
> [...] the queues", i.e. you need to issue the BasicQos *before* the
> BasicConsume.
>
> 2) The second parameter to basicConsume, noAck, must be set to false,
> otherwise the server will automatically ack the messages as soon as it sends
> them, which makes the qos settings ineffective - I suggest you simply use
> the three-arg version of BasicConsume, which sets noAck=false.
>
>
> Regards,
>
> Matthias.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20090422/0d192d44/attachment.htm
More information about the rabbitmq-discuss
mailing list