[rabbitmq-discuss] Effects of closing a rabbitmq connection

Matthias Radestock matthias at lshift.net
Wed Oct 21 08:03:18 BST 2009


George,

George Haidar wrote:
> Would calling the close() method on a rabbitmq Connection object:
> 1. cause all channels to close properly? and

Yes.

> 2. cause all non-durable exchanges and queues to be deleted?

No. The durability setting controls whether resources survive a broker 
restart.

However, you can mark a queue as exclusive, which will cause it to get 
deleted when the creating connection closes. And marking a queue 
auto-delete will cause it to get deleted when its last consumer 
disappears (which may happen in several ways, including through closing 
a connection).


Regards,

Matthias.




More information about the rabbitmq-discuss mailing list