<div dir="ltr">I have some manage CLI script which must show info about exchanges and queues and must declare it if need. How i can take info about this wihout web managment plugin?</div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/2/5 Alvaro Videla <span dir="ltr"><<a href="mailto:videlalvaro@gmail.com" target="_blank">videlalvaro@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I don't know what you are trying to do, but the idea behind the "declare" methods is that you don't need to issue a "queue_declare" passive=true just to see if the queue is there, if not then create it with another queue_declare.<div>
<br></div><div>"queue_declare" won't do anything if the queue already exists, so you shouldn't need to use it twice.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Feb 5, 2013 at 2:52 PM, Тимур <span dir="ltr"><<a href="mailto:mcsseifer@gmail.com" target="_blank">mcsseifer@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">My client raise error on 404 error.<div>I use passive mode for detect exists queue or not. And if it not exists then i try create it without passive. So, i realy cant do something like that:</div>
<div>
<br></div><div>connection->channel_close(1);</div><div>connecton->channel_open(1);</div><div><br></div><div>because "Opening channel: server connection error 503, message: COMMAND_INVALID - second 'channel.open'"</div>
<div><br></div><div>Instead this i reopen connect to server, but its not good way.</div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/2/5 Tim Watson <span dir="ltr"><<a href="mailto:tim@rabbitmq.com" target="_blank">tim@rabbitmq.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On 4 Feb 2013, at 18:31, Тимур wrote:<br>
<br>
> I found strange behavior in some case. What i do:<br>
><br>
> 1. Connect to server<br>
> 2. Open channel with name is '1'<br>
<br>
</div>Channel's don't have *name* property, so I'm not sure what you're talking about here.<br>
<div><br>
> 3. Declare queue with passive = 1<br>
><br>
<br>
</div>Does the queue already exist, or are you trying to create it here?<br>
<div><br>
> And after that i try declare queue with passive = 0 if i receive 404 error in third step. Receive error like 'Declare Exchange: Resource temporary unavailable'. Is it actual behavior?<br>
<br>
<br>
</div>From <a href="http://www.rabbitmq.com/amqp-0-9-1-reference.html#queue.declare.passive" target="_blank">http://www.rabbitmq.com/amqp-0-9-1-reference.html#queue.declare.passive</a><br>
<br>
"bit passive<br>
If set, the server will reply with Declare-Ok if the queue already exists with the same name, and raise an error if not."<br>
<br>
So you would end up with a channel error if the queue doesn't already exit and will need to open a new channel. If that's the case, then it's likely the behaviour you're seeing is consistent but the client error is confusing. The 404 channel error means "The client attempted to work with a server entity that does not exist".<br>
<br>
Cheers,<br>
Tim<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div>