[rabbitmq-discuss] routing key

Chris stuff at moesel.net
Thu Oct 17 16:14:58 BST 2013


Wildcards only work to replace whole words in a routing key pattern (with
the '.' providing the boundary between words).  The tutorial on Topics
explains it like this:

However there are two important special cases for binding keys:

   - * (star) can substitute for exactly one word.
   - # (hash) can substitute for zero or more words.


So putting the wildcards in the middle of words (as in your first three
examples) is not expected to work

-Chris



On Thu, Oct 17, 2013 at 11:06 AM, PATAR, SAGAR <sp345s at att.com> 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"
>
>
> -----Original Message-----
> From: rabbitmq-discuss-bounces at lists.rabbitmq.com [mailto:
> rabbitmq-discuss-bounces at lists.rabbitmq.com] On Behalf Of Michael Klishin
> Sent: Thursday, October 17, 2013 10:43 AM
> To: Discussions about RabbitMQ
> Subject: Re: [rabbitmq-discuss] routing key
>
> On 17 Oct 2013, at 18:34, "PATAR, SAGAR" <sp345s at att.com> wrote:
>
> > I am using "org.springframework.amqp.core.MessageListener" and am
> binding to an exchange using a pattern ..
>
> Is the key just ".." or is it a typo?
>
> Two dots don't really make sense for topic exchanges. Do you mean *.*?
>
> MK
>
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20131017/0e7782e1/attachment.htm>


More information about the rabbitmq-discuss mailing list