<meta charset="utf-8">Robin,<div><br></div><div>What happens here two of your apps declare queue with different attributes because default values for</div><div>parameters like durability seems to differ between that php library and what amqp gem uses.</div>

<div><br></div><div>Since you only want to consume messages on the Ruby side and publish them on the PHP side, you</div><div>have an option of only declaring one queue in your Ruby app and one exchange in the PHP app. Then you</div>

<div>can use default exchange that routes messages to queues when routing key matches queue name.</div><div><br></div><div>When queue is declared only in one place, differences in library defaults won&#39;t get in the way. And, default exchange</div>

<div>was added to AMQP spec exactly for simple</div><div>cases like yours. This scenario is described at <a href="http://www.rabbitmq.com/tutorial-one-python.html">http://www.rabbitmq.com/tutorial-one-python.html</a>.</div>

<div><br></div><div>Hope this helps.<br><br><div class="gmail_quote">2011/1/19 Robin Wood <span dir="ltr">&lt;<a href="mailto:robin@digininja.org">robin@digininja.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

<br>When I run the php I get:<br><br>PHP Fatal error:  Uncaught exception &#39;AMQPQueueException&#39; with message<br>&#39;Server channel error: 406, message: PRECONDITION_FAILED - parameters<br>for queue &#39;queue1&#39; in vhost &#39;/&#39; not equivalent&#39; in<br>

/home/robin/sched/a.php:13<br>Stack trace:<br>#0 /home/robin/sched/a.php(13): AMQPQueue-&gt;declare(&#39;queue1&#39;)<br>#1 {main}<br> thrown in /home/robin/sched/a.php on line 13<br><br></blockquote></div><br>-- <br>MK</div>