Hi Deepak,<br><br>Did you create a topic exchange? Wildcard routing keys in the form you're using require a topic exchange.<br><br>Paul.<br><br><div class="gmail_quote">On Thu, Sep 17, 2009 at 8:36 PM, <span dir="ltr"><<a href="mailto:Deepak.Kumar1@rbs.com">Deepak.Kumar1@rbs.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello<br>
<br>
Has anyone faced issues not getting messages when using catch-all subscription using the .Net Client library ?<br>
<br>
The publishing code is below -<br>
<br>
IConnection conn1 = new ConnectionFactory().CreateConnection( "localhost:5672");<br>
chSendUpdate = conn1.CreateModel();<br>
<br>
...<br>
<br>
chSendUpdate.BasicPublish(string.Empty, "STOCK.PRICES." + CUSIP, null, Encoding.UTF8.GetBytes(bodyText));<br>
<br>
<br>
The subscription code is<br>
using (IConnection conn = new ConnectionFactory().CreateConnection("localhost:5672")){<br>
using (IModel ch = conn.CreateModel()) {<br>
Subscription sub = new Subscription(ch, "STOCK.PRICES.#");<br>
foreach (BasicDeliverEventArgs e in sub) {<br>
Console.WriteLine("Topic({0}):{1}", e.RoutingKey, ASCIIEncoding.ASCII.GetString(e.Body));<br>
sub.Ack(e);<br>
}<br>
}<br>
}<br>
}<br>
<br>
<br>
If the subscription RoutingKey is changed to specific like "STOCK.PRICES.MSFT" etc. then the messages are received fine so i'm guessing there's some flag/option that needs to bet setup or enabled<br>
<br>
I've also tried the sample code in the .net user guide using QueueingBasicConsumer<br>
but no success there either<br>
<br>
<br>
Any ideas on what could be wrong ?<br>
*****Please note that my email address may have changed. For all<br>
future correspondence, please use this address*****<br>
<br>
<br>
********************************************************************This<br>
message (including any attachments) is confidential and/or<br>
privileged. It is to be used by the intended recipients only. If<br>
you have received it by mistake please notify the sender by return<br>
e-mail and delete this message from your system. Any unauthorized<br>
use or dissemination of this message in whole or in part is<br>
strictly prohibited. Please note that e-mails are inherently<br>
insecure and susceptible to change. The Royal Bank of Scotland<br>
Group, plc ("RBS") and its US subsidiaries, and affiliates and<br>
subsidiary undertakings, including but not limited to, RBS plc New<br>
York and Connecticut Branches, RBS Securities Inc., ABN AMRO Bank<br>
N.V. New York and Chicago Branches and, ABN AMRO Incorporated,<br>
Citizens Financial Group, Inc. and RBS Citizens, N.A., shall not be<br>
liable for the improper or incomplete transmission of the<br>
information contained in this communication or Attachment nor for<br>
any delay in its receipt or damage to your system. RBS does not<br>
guarantee that the integrity of this communication has been<br>
maintained nor that this communication is free of viruses,<br>
interceptions or interference. RBS and its subsidiaries and<br>
affiliates do not guarantee the accuracy of any email or<br>
attachment, that an email will be received or that RBS or its<br>
affiliates and subsidiaries will respond to an email.<br>
<br>
RBS makes no representations that any information contained in this<br>
message (including any attachments) are appropriate for use in all<br>
locations or that transactions, securities, products, instruments<br>
or services discussed herein are available or appropriate for sale<br>
or use in all jurisdictions, or by all investors or counterparties.<br>
Those who utilize this information do so on their own initiative<br>
and are responsible for compliance with applicable local laws or<br>
regulations.********************************************************************<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="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</blockquote></div><br>