From users-return-7435-apmail-qpid-users-archive=qpid.apache.org@qpid.apache.org Thu Jan 10 13:13:11 2013 Return-Path: X-Original-To: apmail-qpid-users-archive@www.apache.org Delivered-To: apmail-qpid-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0ABAEE518 for ; Thu, 10 Jan 2013 13:13:11 +0000 (UTC) Received: (qmail 96774 invoked by uid 500); 10 Jan 2013 13:13:10 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 96753 invoked by uid 500); 10 Jan 2013 13:13:10 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 96745 invoked by uid 99); 10 Jan 2013 13:13:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2013 13:13:10 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pmoravec@redhat.com designates 209.132.183.24 as permitted sender) Received: from [209.132.183.24] (HELO mx3-phx2.redhat.com) (209.132.183.24) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2013 13:13:03 +0000 Received: from zmail20.collab.prod.int.phx2.redhat.com (zmail20.collab.prod.int.phx2.redhat.com [10.5.83.23]) by mx3-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r0ADCfIW000894 for ; Thu, 10 Jan 2013 08:12:41 -0500 Date: Thu, 10 Jan 2013 08:12:41 -0500 (EST) From: Pavel Moravec To: users@qpid.apache.org Message-ID: <1977227770.2671096.1357823561930.JavaMail.root@redhat.com> In-Reply-To: Subject: Re: Retrieving specific messages from Last Value Queue MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.34.1.211] X-Mailer: Zimbra 7.2.0_GA_2669 (ZimbraWebClient - FF3.0 (Linux)/7.2.0_GA_2669) X-Virus-Checked: Checked by ClamAV on apache.org Hi Rajesh, you are in fact asking for message selectors that work well in Java client but dont exist in C++ client or in broker (https://issues.apache.org/jira/browse/QPID-530). I *think* only Java / JMS client currently supports so. The only way to workaround is to have separate queues for each stock symbol (or at least separate queue for each symbol you wish to _select_) and subscribe consumers to all such queues (plus optionally consume from the designated queue for e.g. ORCL quote). Kind regards, Pavel ----- Original Message ----- > From: "Rajesh Khan" > To: users@qpid.apache.org > Sent: Wednesday, January 9, 2013 10:53:30 PM > Subject: Retrieving specific messages from Last Value Queue > > Hi I have a receiver in C# that is suppose to retrieve messages from > a LV > Queue. > Currently I traverse through all the messages in that queue. AS > follows > while (receiver.Fetch(ref msg, timeout)) > { > * prop = msg.Properties;* > } > I wanted to know if there is a way to retrieve a message that has a > specific value. > For instance The sender sends the following value > > msga.SetProperty("stock-symbol", "ORCL"); > sender.Send(msga); > > Is there any way that I could retrieve the ORCL message without > iterating > through other messages? > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org