[rabbitmq-discuss] Can't create queues

Steve steve at dnsbed.com
Thu Feb 28 09:02:02 GMT 2013


Hello,

I run this ruby script to connect to rabbitmq on localhost with default 
vhost:

require "rubygems"
require "amqp"

while true
   begin
     AMQP.start(:host => "localhost") do |connection|
       channel  = AMQP::Channel.new(connection)
       exchange = channel.fanout("logs", :durable => true)
       queue    = channel.queue("test_logs", :durable => true)
       queue.bind(exchange)

       puts " [*] Waiting for logs."

       queue.subscribe do |body|
         puts " [x] #{body}"
       end
     end

   rescue Exception => e
     puts e.message
   end
end

The script run without error.
  I then run rabbitmqctl to see the queues but get nothing:

# rabbitmqctl list_queues -p /
Listing queues ...
...done.

So what's wrong with my setup?

Thanks.


More information about the rabbitmq-discuss mailing list