<div dir="ltr">Wildcards only work to replace whole words in a routing key pattern (with the &#39;.&#39; providing the boundary between words).  The tutorial on Topics explains it like this:<div><br></div><div><p style="clear:left;color:rgb(85,85,85);font-family:Verdana,sans-serif;font-size:13px;line-height:18px">
However there are two important special cases for binding keys:</p><ul style="margin:10px 0px;padding:0px;color:rgb(85,85,85);font-family:Verdana,sans-serif;font-size:13px;line-height:18px"><li style="list-style-type:none;background-image:url(http://www.rabbitmq.com/img/li.gif);margin:0px;padding:3px 0px 2px 10px;background-repeat:no-repeat no-repeat">
<span class="" style="color:rgb(51,51,51);font-family:&#39;Courier New&#39;,Courier,monospace;font-size:small;white-space:nowrap">*</span> (star) can substitute for exactly one word.</li><li style="list-style-type:none;background-image:url(http://www.rabbitmq.com/img/li.gif);margin:0px;padding:3px 0px 2px 10px;background-repeat:no-repeat no-repeat">
<span class="" style="color:rgb(51,51,51);font-family:&#39;Courier New&#39;,Courier,monospace;font-size:small;white-space:nowrap">#</span> (hash) can substitute for zero or more words.</li></ul></div><div><br></div><div>So putting the wildcards in the middle of words (as in your first three examples) is not expected to work</div>
<div><br></div><div>-Chris</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Oct 17, 2013 at 11:06 AM, PATAR, SAGAR <span dir="ltr">&lt;<a href="mailto:sp345s@att.com" target="_blank">sp345s@att.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am using &quot;org.springframework.amqp.core.MessageListener&quot; and am binding to an exchange (amqp.topic) using a below pattern<br>

<div class="im"><br>
1#  - not working<br>
*xx# - not working<br>
#1# - not working<br>
<br>
1xx - is working<br>
# - is working<br>
<br>
</div>The first 3 patterns seems to be not working but the last two are working and messages are forwarded ..<br>
<div class="im HOEnZb">I am sending message with binding key as &quot;1xx&quot;<br>
<br>
<br>
</div><div class="HOEnZb"><div class="h5">-----Original Message-----<br>
From: <a href="mailto:rabbitmq-discuss-bounces@lists.rabbitmq.com">rabbitmq-discuss-bounces@lists.rabbitmq.com</a> [mailto:<a href="mailto:rabbitmq-discuss-bounces@lists.rabbitmq.com">rabbitmq-discuss-bounces@lists.rabbitmq.com</a>] On Behalf Of Michael Klishin<br>

Sent: Thursday, October 17, 2013 10:43 AM<br>
To: Discussions about RabbitMQ<br>
Subject: Re: [rabbitmq-discuss] routing key<br>
<br>
On 17 Oct 2013, at 18:34, &quot;PATAR, SAGAR&quot; &lt;<a href="mailto:sp345s@att.com">sp345s@att.com</a>&gt; wrote:<br>
<br>
&gt; I am using &quot;org.springframework.amqp.core.MessageListener&quot; and am binding to an exchange using a pattern ..<br>
<br>
Is the key just &quot;..&quot; or is it a typo?<br>
<br>
Two dots don&#39;t really make sense for topic exchanges. Do you mean *.*?<br>
<br>
MK<br>
<br>
<br>
<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br></div>