[rabbitmq-discuss] Can't read messages with erlang client
    Ben Hood 
    0x6e6562 at gmail.com
       
    Sat Jan 31 19:08:00 GMT 2009
    
    
  
Mark,
On Sat, Jan 31, 2009 at 5:20 PM, Mark Geib <mark.geib at echostar.com> wrote:
> For the producer I do...
Ok, let's start with first principles - what behavior do you see when
you rearrange your code in this way:
test() ->
    Connection = lib_amqp:start_connection("localhost"),
    Channel = lib_amqp:start_channel(Connection),
    X = <<"cse.sms.commands">>,
    K = <<"test.messages">>,
    lib_amqp:declare_exchange(Channel, X, <<"topic">>),
    Q = lib_amqp:declare_queue(Channel),
    lib_amqp:bind_queue(Channel, X, Q, K),
    lib_amqp:publish(Channel, X, K, <<"This is a test message">>),
    lib_amqp:get(Channel, Q, false).
Ben
    
    
More information about the rabbitmq-discuss
mailing list