<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19088"></HEAD>
<BODY>
<DIV><SPAN class=257344620-30062011><FONT face=Arial>I am confused by my
experiments with rabbitmq-c.</FONT></SPAN></DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial>I was trying to follow the
task worker tutorial:</FONT></SPAN></DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial> <A
href="http://www.rabbitmq.com/tutorials/tutorial-two-python.html">http://www.rabbitmq.com/tutorials/tutorial-two-python.html</A></FONT></SPAN></DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial>Of course, I'm using C
interfaces not the python or Java interfaces.</FONT></SPAN></DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial>Being a newbie it is
probable that I'm doing something wrong, but:</FONT></SPAN></DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial>The tutorial implies to me
that if I have:</FONT></SPAN></DIV>
<UL>
<LI><SPAN class=257344620-30062011><FONT face=Arial>one
exchange+topic </FONT></SPAN>
<LI><SPAN class=257344620-30062011><FONT face=Arial>two worker executables
that read from it</FONT></SPAN></LI></UL>
<DIV><SPAN class=257344620-30062011><FONT
face=Arial> then</FONT></SPAN></DIV>
<UL>
<LI><SPAN class=257344620-30062011><FONT face=Arial>due to round-robin
processing, some messages will go to one executable</FONT></SPAN>
<LI><SPAN class=257344620-30062011><FONT face=Arial>other messages will go to
the other</FONT></SPAN></LI></UL>
<DIV><SPAN class=257344620-30062011><FONT face=Arial>However, I am seeing that
both exectuables receive <STRONG>all</STRONG> the messages -- which is not at
all what I want.</FONT></SPAN></DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial>Is this supposed to work
with the default version of rabbitmq-c?</FONT></SPAN></DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial>Immediately upon logging
into the channel, in the consumers, I am setting
</FONT></SPAN></DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial>
basic_qos(conn, 1, 0, 1, 0);</FONT></SPAN></DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial>Also, I am calling
basic_consume like this:</FONT></SPAN></DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=257344620-30062011><FONT
face=Arial>
amqp_basic_consume(conn,<BR>
1,<BR>
amqp_cstring_bytes(queuename),<BR>
amqp_empty_bytes,<BR>
0,<BR>
0,<BR>
0,<BR>
amqp_empty_table<BR>
);</FONT></SPAN></DIV>
<DIV><SPAN class=257344620-30062011><FONT
face=Arial><BR> </DIV></FONT></SPAN>
<DIV><SPAN class=257344620-30062011><FONT face=Arial>The exchange that i am
using is amq.direct. I have tried an empty string queue name as well as
"hello".</FONT></SPAN></DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial>I am calling basic_ack() as
soon as I receive the messages in both worker executables -- well, after I log
their reception.</FONT></SPAN></DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial>Any
ideas?</FONT></SPAN></DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial>
Lowell</FONT></SPAN></DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=257344620-30062011><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=257344620-30062011><FONT
face=Arial> </DIV></FONT></SPAN></BODY></HTML>