From users-return-6021-apmail-qpid-users-archive=qpid.apache.org@qpid.apache.org Mon Mar 12 14:59:59 2012 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 D367A96F6 for ; Mon, 12 Mar 2012 14:59:59 +0000 (UTC) Received: (qmail 765 invoked by uid 500); 12 Mar 2012 14:59:59 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 734 invoked by uid 500); 12 Mar 2012 14:59:59 -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 726 invoked by uid 99); 12 Mar 2012 14:59:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2012 14:59:59 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 199.36.142.181 is neither permitted nor denied by domain of shuston@riverace.com) Received: from [199.36.142.181] (HELO smtp.01.com) (199.36.142.181) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2012 14:59:51 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id AEF9E4F5686 for ; Mon, 12 Mar 2012 09:59:30 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-2.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-2.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a0h9Ft8nO+sQ for ; Mon, 12 Mar 2012 09:59:30 -0500 (CDT) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id 8DAA34F56A0 for ; Mon, 12 Mar 2012 09:59:30 -0500 (CDT) Received: from mail-1.01.com (mail.01.com [172.18.30.178]) by smtp-out-2.01.com (Postfix) with ESMTP id 83C7A4F5686 for ; Mon, 12 Mar 2012 09:59:29 -0500 (CDT) From: "Steve Huston" To: References: <980973149D509B4AA117C3CE035BACA9050B0D47@BY2PRD0610MB366.namprd06.prod.outlook.com> <980973149D509B4AA117C3CE035BACA9050B42C0@BY2PRD0610MB366.namprd06.prod.outlook.com> In-Reply-To: <980973149D509B4AA117C3CE035BACA9050B42C0@BY2PRD0610MB366.namprd06.prod.outlook.com> Subject: RE: How to receive specific response Date: Mon, 12 Mar 2012 09:59:29 -0500 (CDT) Message-ID: <010401cd0060$b87c0b90$297422b0$@riverace.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 X-Mailer: Zimbra 7.1.3_GA_3374 (ZimbraConnectorForOutlook/7.1.1.6324) thread-index: AQDJrz6AAbiwaaNjT9WW91VuHvPKCQFIWP7bmGMfVPA= Content-Language: en-us X-Originating-IP: [24.62.20.96] X-Virus-Checked: Checked by ClamAV on apache.org Hi Todd, I suggest finding a way to filter the messages into queues private to each receiver so you don't need to fetch, examine, release each one. That said, you can qpid::messaging::session::release() a message if you don't want it - the broker will redeliver it. I'm not completely sure if it may redelivered to the same client, but it's worth a try. To keep the message, acknowledge it. -Steve > -----Original Message----- > From: Todd Herman [mailto:todd@apx-labs.com] > Sent: Monday, March 12, 2012 10:21 AM > To: users@qpid.apache.org > Subject: FW: How to receive specific response > > I send this question out earlier but didn't get any response so I figured I > would send it again. The main thing I am trying to see is how to read a > message from a queue without it being automatically deleted. I have no > control over how the queue was created. I need to be able to check all the > messages on the queue because only certain ones will be for me. I can't > have the messages not for me being deleted because I read them. > > Any thoughts? > > From: Todd Herman [mailto:todd@apx-labs.com] > Sent: Thursday, March 08, 2012 11:48 AM > To: users@qpid.apache.org > Subject: How to receive specific response > > I am using the Qpid C++ client. Well, technically I am writing this in C# so I am > using the .net bindings for the c++ client. I need to retrieve a specific > message from a queue. Basically, multiple clients will watch a certain queue > for responses but they each only want there (based on the correlation id) > message. It looks like you can do this with the Java client because > CreateConsumer allows you to provide a "message selector", which I assume > allows you to filter the messages to just the one you want. > > So, how do I do the equivalent when using the c++ (and .net binding) client? > I could grab each message and check the correlation id but won't doing that > remove it from the queue? I need to make sure I don't remove the wrong > one from the queue. > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org