<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">I would like to use this feature as documented at&nbsp;<a href="http://www.rabbitmq.com/blog/2011/03">http://www.rabbitmq.com/blog/2011/03</a>/ and&nbsp;<a href="http://www.rabbitmq.com/extensions.html">http://www.rabbitmq.com/extensions.html</a></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">I tested both manually using the management console and with a coffeescript program but cannot make it work.</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">Of course it is possible � even probable � that I have an error in understanding� :)</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">My application is one where I would like to publish each message using multiple routing keys.</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">In general each subscriber will bind with one key.</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">Here is a test that fails both on my mac using RabbitMQ&nbsp;<span class="Apple-style-span" style="border-collapse: collapse; color: rgb(72, 72, 72); font-size: 12px; line-height: 17px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: Verdana, sans-serif; ">2.7.1 / Erlang R15B and a linux box using&nbsp;</span>RabbitMQ&nbsp;<span class="Apple-style-span" style="border-collapse: collapse; color: rgb(72, 72, 72); font-size: 12px; line-height: 17px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: Verdana, sans-serif; ">2.7.1 / Erlang R14B:</span></div><div><font class="Apple-style-span" color="#484848" face="Verdana,sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; font-size: 12px; line-height: 17px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: Courier; "><br></span></font></div><div><font class="Apple-style-span" color="#484848" face="Verdana,sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; font-size: 12px; line-height: 17px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: Courier; "># test.coffee</span></font></div><div><font class="Apple-style-span" color="#484848" face="Courier"><span class="Apple-style-span" style="border-collapse: collapse; line-height: 17px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><div style="font-size: 12px; "><div><div><div>amqp = require 'amqp'</div><div><br></div><div>t1_message = (message, headers, properties) -&gt;</div><div>&nbsp; console.log &quot;&quot;&#43;</div><div>&nbsp; &nbsp; &quot;\nSuccess: t1: message: #{JSON.stringify message}&quot;&#43;</div><div>&nbsp; &nbsp; &quot;\nheaders: #{JSON.stringify headers}&quot;&#43;</div><div>&nbsp; &nbsp; &quot;\nproperties: #{JSON.stringify properties, undefined, 4}&quot;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; process.exit 0</div><div>&nbsp;&nbsp;</div><div>t0_message = (message, headers, properties) -&gt;</div><div>&nbsp; console.log &quot;&quot;&#43;</div><div>&nbsp; &nbsp; &quot;\nBroadcast: t0: message: #{JSON.stringify message}&quot;&#43;</div><div>&nbsp; &nbsp; &quot;\nheaders: #{JSON.stringify headers}&quot;&#43;</div><div>&nbsp; &nbsp; &quot;\nproperties: #{JSON.stringify properties, undefined, 4}&quot;</div><div>&nbsp;&nbsp;</div><div>bailout = -&gt;&nbsp;</div><div>&nbsp; console.log &quot;\nFailure&quot;</div><div>&nbsp; process.exit 1</div><div><br></div><div>amqp_connection = amqp.createConnection()</div><div><br></div><div>amqp_connection.on 'ready', () -&gt;&nbsp;</div><div>&nbsp; properties = type:'topic', durable: true</div><div><br></div><div>&nbsp; amqp_connection.exchange &quot;test&quot;, properties, (exchange) -&gt;</div><div>&nbsp; &nbsp; properties = durable:true, autoDelete:false</div><div><br></div><div>&nbsp; &nbsp; amqp_connection.queue &quot;t1&quot;, properties, (queue) -&gt;</div><div>&nbsp; &nbsp; &nbsp; queue.bind exchange, &quot;foo&quot;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; queue.subscribe (message, headers, properties) -&gt;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; t1_message message, headers, properties</div><div><br></div><div>&nbsp; &nbsp; &nbsp; amqp_connection.queue &quot;t0&quot;, properties, (queue) -&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; queue.bind exchange, &quot;*&quot;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; queue.subscribe (message, headers, properties) -&gt;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; t0_message message, headers, properties</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; cc_header = cc:[&quot;foo&quot;,&quot;bar&quot;]</div><div>&nbsp; &nbsp; &nbsp; &nbsp; properties = contentType:&quot;application/json&quot;, headers:cc_header</div><div>&nbsp; &nbsp; &nbsp; &nbsp; message = test:&quot;message content&quot;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; exchange.publish &quot;whatever&quot;, message, properties</div><div>&nbsp; &nbsp; &nbsp; &nbsp; setTimeout bailout, 1000</div></div></div><div><br></div></div><div><span style="font-family: Calibri; ">Here's the output � if it had succeeded, both queues would have received the message:</span></div></span></font><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; white-space: pre; "><div><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; white-space: pre; "><br></span></div>Broadcast: t0: message: {&quot;test&quot;:&quot;message content&quot;}</span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; white-space: pre; ">headers: {&quot;cc&quot;:{&quot;0&quot;:&quot;foo&quot;,&quot;1&quot;:&quot;bar&quot;}}</span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; white-space: pre; ">properties: {</span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; white-space: pre; ">    &quot;contentType&quot;: &quot;application/json&quot;,</span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; white-space: pre; ">    &quot;headers&quot;: {</span><span class="Apple-style-span" style="font-size: 12px; font-family: 'Lucida Grande'; "><pre style="word-wrap: break-word; ">        &quot;cc&quot;: {<br>            &quot;0&quot;: &quot;foo&quot;,<br>            &quot;1&quot;: &quot;bar&quot;<br>        }<br>    },<br>    &quot;queue&quot;: &quot;t0&quot;,<br>    &quot;deliveryTag&quot;: 1,<br>    &quot;redelivered&quot;: false,<br>    &quot;exchange&quot;: &quot;test&quot;,<br>    &quot;routingKey&quot;: &quot;whatever&quot;,<br>    &quot;consumerTag&quot;: &quot;node-amqp-38169-0.10587440640665591&quot;<br>}<br><br>Failure</pre></span></div></body></html>