[rabbitmq-discuss] routing key

Matthias Radestock matthias at rabbitmq.com
Thu Oct 17 16:11:39 BST 2013


On 17/10/13 16:06, PATAR, SAGAR wrote:
> I am using "org.springframework.amqp.core.MessageListener" and am binding to an exchange (amqp.topic) using a below pattern
>
> 1#  - not working
> *xx# - not working
> #1# - not working
>
> 1xx - is working
> # - is working
>
> The first 3 patterns seems to be not working but the last two are working and messages are forwarded ..
> I am sending message with binding key as "1xx"

See http://www.rabbitmq.com/tutorials/tutorial-five-python.html

"Messages sent to a topic exchange can't have an arbitrary routing_key - 
it must be *a list of words, delimited by dots*.
...
     * (star) can substitute for exactly one *word*.
     # (hash) can substitute for zero or more *words*.
"

Matthias.


More information about the rabbitmq-discuss mailing list