<!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 <mark.geib@echostar.com> wrote:<BR>
> I am using a topic exchange, created by the producer, and sending with<BR>
> simple routing key <<"test">>. I do the same basic config in the<BR>
> consumer, in addition I do a<BR>
> %bind a queue to get the sms commands<BR>
> Q = lib_amqp:declare_queue(Channel),<BR>
> SourceKey = <<"test">>,<BR>
> lib_amqp:bind_queue(Channel, X, Q, SourceKey),<BR>
><BR>
> Then to read a message I do<BR>
> Reply = lib_amqp:get(Channel, Q, false),<BR>
><BR>
> 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>