Erlang/OTP Forums

Author Message

<  RabbitMQ mailing list  ~  Effects of closing a rabbitmq connection

Guest
Posted: Wed Oct 21, 2009 5:54 am Reply with quote
Guest
Hi,
Would calling the close() method on a rabbitmq Connection object:
1. cause all channels to close properly? and
2. cause all non-durable exchanges and queues to be deleted?

Regards,
George Haidar

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
Guest
Posted: Wed Oct 21, 2009 7:03 am Reply with quote
Guest
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.

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum