Btw, my message broker is Apache Qpid, java broker<br><br><div class="gmail_quote">On Fri, Sep 7, 2012 at 2:26 PM, Sajith Kariyawasam <span dir="ltr">&lt;<a href="mailto:sajhak@gmail.com" target="_blank">sajhak@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div class="h5"><div>On Fri, Sep 7, 2012 at 2:03 PM, Tim Watson <span dir="ltr">&lt;<a href="mailto:tim@rabbitmq.com" target="_blank">tim@rabbitmq.com</a>&gt;</span> wrote:</div>
</div></div><div class="gmail_quote"><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div>
    On 09/07/2012 08:23 AM, Brett Cameron wrote:
    <blockquote type="cite">Sajith,<br>
      <br>
      Could you just use something like <a href="http://manpages.ubuntu.com/manpages/natty/man1/amqp-consume.1.html" target="_blank">http://manpages.ubuntu.com/manpages/natty/man1/amqp-consume.1.html</a>?
      <div style="word-wrap:break-word">
        <div>
          <div><br>
          </div>
        </div>
      </div>
    </blockquote>
    <br></div>
    That sets up a consumer rather than doing a one-off basic.get -
    however
    <a href="http://manpages.ubuntu.com/manpages/natty/man1/amqp-get.1.html" target="_blank">http://manpages.ubuntu.com/manpages/natty/man1/amqp-get.1.html</a>
    appears to do exactly what the OP wants. Both of these programs
    appear to come from the ./tools subdirectory of rabbitmq-c anyway. <br>
  </div>

<br></blockquote><div><br></div></div></div><div>I installed amqp-tools in Ubuntu 12, and issued the following command, <div><br></div><div><div>$ amqp-get --server=10.10.1.2 --vhost=test --username=guest --password=guest --queue=myqueue, </div>

<div><br></div><div>Then i get following exception ,, </div><div><br></div><div> &quot;basic.get: connection closed unexpectedly&quot;</div></div></div><div class="im"><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Best Regards<div>Sajith</div><br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Best Regards<div>Sajith</div><br>