[rabbitmq-discuss] BasicGet ignoring routing key . Exchange is Direct
Michael Klishin
michael.s.klishin at gmail.com
Fri Jan 3 13:14:44 GMT 2014
2014/1/3 Patrick Long <pat at munkiisoft.com>
> When I call channel.*BasicGet*(this.WorkQueueName, false) in a loop it
> dequeues messages ignoring the routingkey set on them.
>
> Any idea why it would be ignoring the RoutingKey?
>
Routing key is used to route messages to queues. They play no part in
consumption of messages.
See http://www.rabbitmq.com/tutorials/amqp-concepts.html
To consume messages selectively you need to make sure they are routed to
different queues, then consume
from the right queue.
--
MK
http://github.com/michaelklishin
http://twitter.com/michaelklishin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140103/ce77f966/attachment.html>
More information about the rabbitmq-discuss
mailing list