<div>Thanks for the information Michael.</div>
<div>�</div>
<div>Regards,</div>
<div>�</div>
<div>Chris<br></div>
<div class="gmail_quote">2009/11/26 Michael Bridgen <span dir="ltr">&lt;<a href="mailto:mikeb@lshift.net">mikeb@lshift.net</a>&gt;</span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi Chris,<br>
<div class="im"><br>&gt; Someone recently asked me a question about finding a named exchange<br>&gt; without specifying the type in the declare method call. I&#39;ve done some<br>&gt; testing against RabbitMQ v1.7.0 and it seems that you cannot re-declare<br>
&gt; an existing exchange without supplying a type argument, even if the<br>&gt; passive argument is used and set to true. I consistently get a 503 error.<br><br></div>RabbitMQ implements AMQP 0-8 right now, which doesn&#39;t specify passive in<br>
quite the same way as 0-9-1. �In 0-8, only auto-delete and durable are<br>ignored.<br>
<div class="im"><br>&gt; The 0-9-1 AMQP XML spec suggests that if you set the passive argument to<br>&gt; true in the exchange declare method call, then type should be ignored.<br><br></div>Yes indeed; 0-9-1 is much clearer than 0-8 on what the passive flag<br>
means. �Essentially exchange.declare and queue.declare, with passive<br>set, are different methods.<br>
<div class="im"><br>&gt; Firstly, can anyone confirm that the behaviour I am observing regarding<br>&gt; arguments passed in the exchange declare method is correct. There could<br>&gt; be a problem with my client library that I haven&#39;t found.<br>
<br></div>If &quot;without supplying a type argument&quot; above means you send an empty<br>string, you&#39;re getting back 503 Command Invalid because of AMQP 0-8 rule<br>amqp_exchange_18, which says the server must send 503 if it doesn&#39;t<br>
support the exchange type.<br><br>If you know the exchange type you should be able to send that and get a<br>declare-ok or 404 back.<br>
<div class="im"><br>&gt; Secondly, if the type argument is mandatory even when the passive<br>&gt; argument is used and set to true, is this a bug in RabbitMQ?<br><br></div>Not at the minute. �We are working on 0-9-1 support, in the (fairly<br>
stable and up to date) branch amqp_0_9_1. �In this branch right now,<br>Queue.Declare has the new semantics, though Exchange.Declare doesn&#39;t<br>quite yet.<br><br>The client APIs are also being changed; e.g., in the Java client,<br>
there&#39;s now Channel.declarePassive(String name), and Channel.declare no<br>longer takes an argument for passive.<br><br><br>Cheers,<br>Michael<br><br><br>_______________________________________________<br>rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br><a href="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Regards<br><br>Chris<br>