<div dir="ltr">More info: The management UI added the Message to the right Queue but the exchange is not the usual one. It has used "<span style="color:rgb(72,72,72);font-family:Verdana,sans-serif;font-size:11.818181991577148px;line-height:16.988636016845703px">AMQP default" with a delivery_mode of 1.</span><div>
<span style="color:rgb(72,72,72);font-family:Verdana,sans-serif;font-size:11.818181991577148px;line-height:16.988636016845703px"><br></span></div><div><font color="#484848" face="Verdana, sans-serif"><span style="font-size:11.818181991577148px;line-height:16.988636016845703px">Does this explain the unexpected�</span><span style="font-size:12px;line-height:16.984375px">dequeuing</span><span style="font-size:11.818181991577148px;line-height:16.988636016845703px">?</span></font></div>
<div><font color="#484848" face="Verdana, sans-serif"><span style="font-size:11.818181991577148px;line-height:16.988636016845703px"><br></span></font></div><div><font color="#484848" face="Verdana, sans-serif"><span style="font-size:11.818181991577148px;line-height:16.988636016845703px">Thanks</span></font></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 2 January 2014 17:56, Patrick Long <span dir="ltr"><<a href="mailto:pat@munkiisoft.com" target="_blank">pat@munkiisoft.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">We are using the C# .NET client library.<div><br></div><div>I create a channel like so</div><div><br></div><div>channel.ExchangeDeclare(workExchangeName, <b>ExchangeType.Direct</b>);</div><div><br></div><div>

Then bind a queue like�</div><div><br></div><div>channel.QueueBind(this.WorkQueueName, workExchangeName, <b>BuildRoutingKey(buildNumber)</b>);</div><div><br></div><div>Today I was trying to debug a failing message from a different environment. I took the message's JSON from that server, via the Management UI, and manually created a message on my local machine, again via the Management UI. There was no option to set a specific RoutingKey, it created one for me with the same name as the queue 'WorkQueue'.</div>

<div><br></div><div>The local RabbitMQ had a couple of existing messages with a RoutingKey of 'Development:STACK_1_WEBSERVER_V2:1:2.9.0.0'</div><div><br></div><div>When I call channel.<b>BasicGet</b>(this.WorkQueueName, false) in a loop it dequeues all three messages even though the channel was created to look at a queue and exchange with the routing key of 'Development:STACK_1_WEBSERVER_V2:1:2.9.0.0'</div>

<div><br></div><div>Any idea why it would be ignoring the RoutingKey?</div><div><div><br></div><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div><br></div><div><br></div>-- <br>Patrick Long - Munkiisoft Ltd
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Patrick Long - Munkiisoft Ltd
</div>