[bunny-amqp-devel] using bunny to get check if a queue exists

52 views
Skip to first unread message

vishnu

unread,
Feb 7, 2010, 6:39:08 AM2/7/10
to bunny-am...@rubyforge.org
Hi Chris
   digging around in the bunny.queue method, it seems it allows me to say bunny.queue("name", :passive => true) to check if a queue exists. However, if I do this, I get a Qrack::ForcedChannelCloseError which makes it sound like the connection has now shut down. Is that right?

thanks
Vishnu

celldee

unread,
Feb 25, 2010, 4:26:51 PM2/25/10
to bunny-am...@rubyforge.org
Hi Vishnu,

Unfortunately, you have to specify :type in the bunny.queue call. So
you would have something like -

bunny.queue("name", :passive => true, :type => :fanout)

That's how RabbitMQ has been implemented. Not sure about the other
servers.

Regards,

Chris

> _______________________________________________
> bunny-amqp-devel mailing list
> bunny-amqp-de...@rubyforge.orghttp://rubyforge.org/mailman/listinfo/bunny-amqp-devel
_______________________________________________
bunny-amqp-devel mailing list
bunny-am...@rubyforge.org
http://rubyforge.org/mailman/listinfo/bunny-amqp-devel

Reply all
Reply to author
Forward
0 new messages