<div dir="ltr">Hi everybody, I have just study RabbitMQ with SimpleAmqpClient, but when I published message using follow code:<br><br><br><blockquote style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">#include <SimpleAmqpClient/SimpleAmqpClient.h><br><br>#include <iostream><br>#include <stdlib.h><br><br>using namespace AmqpClient;<br>int main()<br>{<br>  <br>    <br>    char *szBroker = getenv("AMQP_BROKER");<br>    <br>    <br>    Channel::ptr_t channel;<br>    if (szBroker != NULL)<br>        channel = Channel::Create(szBroker);<br>    else        <br>        channel = Channel::Create("127.0.0.1", 5672, "guest", "guest", "/", 4096);<br><br>    channel->DeclareQueue("alanqueue");<br>    channel->BindQueue("alanqueue", "amq.direct", "alankey");<br>    <br><br>    BasicMessage::ptr_t msg_in = BasicMessage::Create();<br><br>    msg_in->Body("Body massegae.");<br><br>    channel->BasicPublish("amq.direct", "alankey", msg_in);<br><br>    channel->BasicConsume("alanqueue", "consumertag");<br><br>    BasicMessage::ptr_t msg_out = channel->BasicConsumeMessage("consumertag")->Message();<br><br>    std::cout << "Message text: " << msg_out->Body() << std::endl;<br>    return 0;<br>}<br></blockquote><br>I don't see message in alanqueue queue. What wrong in here?<br><br>Sorry about my English<br><p style="text-align: center; clear: both;" class="separator"><a style="clear: left; margin-bottom: 1em; float: left; margin-right: 1em;" href="https://lh5.googleusercontent.com/-9m3WYrZA3Lw/UvyZHib-6gI/AAAAAAAAAAY/3M3zAW9DtKo/s1600/Screenshot+from+2014-02-13+17%3A00%3A10.png" imageanchor="1"><img src="https://lh5.googleusercontent.com/-9m3WYrZA3Lw/UvyZHib-6gI/AAAAAAAAAAY/3M3zAW9DtKo/s400/Screenshot+from+2014-02-13+17%3A00%3A10.png" style="" height="216" border="0" width="400"></a></p></div>