<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>RE: [rabbitmq-discuss] Can't read messages with erlang client</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Ben,<BR>
<BR>
I have another erlang app that is constantly sending messages. So the answer is both.<BR>
I have looked at the queue with rabbitmq and the number of messages constantly grows, I just can't seem to 'get' them.<BR>
<BR>
Mark.<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Ben Hood [<A HREF="mailto:0x6e6562@gmail.com">mailto:0x6e6562@gmail.com</A>]<BR>
Sent: Fri 1/30/2009 6:34 PM<BR>
To: Geib, Mark<BR>
Cc: rabbitmq-discuss@lists.rabbitmq.com<BR>
Subject: Re: [rabbitmq-discuss] Can't read messages with erlang client<BR>
<BR>
Mark,<BR>
<BR>
On Sat, Jan 31, 2009 at 12:16 AM, Mark Geib &lt;mark.geib@echostar.com&gt; wrote:<BR>
&gt; I am using a topic exchange, created by the producer, and sending with<BR>
&gt; simple routing key &lt;&lt;&quot;test&quot;&gt;&gt;. I do the same basic config in the<BR>
&gt; consumer, in addition I do a<BR>
&gt;&nbsp;&nbsp; %bind a queue to get the sms commands<BR>
&gt;&nbsp;&nbsp; Q = lib_amqp:declare_queue(Channel),<BR>
&gt;&nbsp;&nbsp; SourceKey = &lt;&lt;&quot;test&quot;&gt;&gt;,<BR>
&gt;&nbsp;&nbsp; lib_amqp:bind_queue(Channel, X, Q, SourceKey),<BR>
&gt;<BR>
&gt; Then to read a message I do<BR>
&gt;&nbsp;&nbsp; Reply = lib_amqp:get(Channel, Q, false),<BR>
&gt;<BR>
&gt; But I always get a 'basic.get_empty' reply.<BR>
<BR>
This may be a stupid question, but are you sending a message before or<BR>
after having created the binding?<BR>
<BR>
Ben<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>