[rabbitmq-discuss] Can't read messages with erlang client

Ben Hood 0x6e6562 at gmail.com
Sat Jan 31 01:34:25 GMT 2009


Mark,

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?

Ben




More information about the rabbitmq-discuss mailing list