[rabbitmq-discuss] RabbitMQ C# client

Michael Klishin mklishin at gopivotal.com
Tue Mar 18 15:57:31 GMT 2014

On 18 Mar 2014, at 19:12, S. Doug Hunt <sdh at conix.com> wrote:

> We create a queue when a review operator first opens a unit of work.   Other operators can open the same unit of work, but obviously we do not want to add items to the queue from the database for subsequent operators.    So – the first thing we do is use the QueueDeclarePassive(queuename) method in a try-catch.
> So – for the first operator fails with the error that the queue was not found.   We then attempt to use the QueueDeclare method to create the queue, however it then fails with the same error.

When QueueDeclarePassive fails, a channel exception is thrown and it closes
the channel. The error you get subsequently is almost certainly for an attempt to use
a closed channel.

“resetting” the model likely involves creating a new IModel (channel) instance which
opens a brand new channel.


Software Engineer, Pivotal/RabbitMQ

More information about the rabbitmq-discuss mailing list