<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2013/12/16 3k4b251 <span dir="ltr"><<a href="mailto:314992959@qq.com" target="_blank">314992959@qq.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":11p" style="overflow:hidden">But once I send a<br>
msg, I can not receive it. So I Check the queue by rabbitmqctl. I<br>
see the msg in q123 who had not been published. So I try to<br>
remove the consumer: amqp_basic_cancel(q123...) and request the<br>
consumer :amqp_basic_consume(q123....). But I still can not<br>
receive the msg.<br>
finally I restart the connection to MQ server, then I receive<br>
the msg. </div></blockquote><div><br></div><div>Make sure that the queue is not auto-delete. Use management UI to find out if the messages</div><div>are actually being routed and if the exchange type is indeed fanout. Make sure your don't use</div>
<div>manual acknowledgements and configure basic.qos, or if you do, you ack or reject messages</div><div>correctly.</div><div> </div><div>See RabbitMQ log if there are any exceptions. Use RabbitMQ tracer (ships with the Java client)</div>
<div>to see what's being sent up and down the wire.</div></div>-- <br>MK<br><br><a href="http://github.com/michaelklishin" target="_blank">http://github.com/michaelklishin</a><br><a href="http://twitter.com/michaelklishin" target="_blank">http://twitter.com/michaelklishin</a><br>
</div></div>