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