Return-Path: Delivered-To: apmail-qpid-users-archive@www.apache.org Received: (qmail 58909 invoked from network); 14 Jul 2009 15:58:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Jul 2009 15:58:31 -0000 Received: (qmail 30215 invoked by uid 500); 14 Jul 2009 15:57:16 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 27020 invoked by uid 500); 14 Jul 2009 15:57:09 -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 25449 invoked by uid 99); 14 Jul 2009 15:53:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jul 2009 15:53:11 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [68.180.199.127] (HELO web46110.mail.sp1.yahoo.com) (68.180.199.127) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 14 Jul 2009 15:53:01 +0000 Received: (qmail 78010 invoked by uid 60001); 14 Jul 2009 15:52:40 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1247586760; bh=V0A5ImrDbfdIVl4ZJEw63abV+Id7bgITgkummrRO/8Q=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=1toDW86GPjHOhBjSYsdxFhTMo2yBCiZLGNhv/XjS/8qwP29rlsbwbXd5rQhEKf5dY+JlpaxXxKz/I48y5WwPmlYMP+KrsQgitL5jlYwoljSun5PalPxKe4QmSfOrn8qEkSCPnWn3ewyESst2GWV4v2dM//Erfx1NhuUWE5vZQF0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=hTVXQbFXPJBY6VcZwFGzgfWnjzqDNliQP+H/obp6qhukacxVpqmJW4Aiv2MhujEZYxhWYACXEDyLkto8eW+6ac6JCMpJj0Lc7Dphk877+QpkdWoD3lgU20NL3xZ0+tsLB1F9BV0LvYVtTe9zPvzRyaEIkOIj1hMOST/5SNAxXuA=; Message-ID: <905112.77384.qm@web46110.mail.sp1.yahoo.com> X-YMail-OSG: FdToY5wVM1l0nFWjr6fgDxkFBvaNTs8BpegufoEIiMYgnpgQvYFgVUlJYQDff0AwqnWpR.2_V515Dfb1HR3DxpNSc71NxBL0QcEOIIkz3wR6ECvRboZuP0g4yu8J8VqlkSl_yJ39kEs.3dmgPQNmDjwy8h_.sX.DOCHDJM7cZm9eVZYmipO2H03uNFVXaKDF07BrIJ0suaAHbaUzfSpsw7wHVf84r1mxF0bAeQQA3qAyijWYGL5OwWBgmMiYMifjs2o.MZxK6B2XFzowlBuPDUuwymy1Wbyvkc081xpclYkumow8_4aJpZSRgIdBZIS9azq3zssW3g-- Received: from [59.184.54.101] by web46110.mail.sp1.yahoo.com via HTTP; Tue, 14 Jul 2009 08:52:40 PDT X-Mailer: YahooMailClassic/6.0.18 YahooMailWebService/0.7.289.15 Date: Tue, 14 Jul 2009 08:52:40 -0700 (PDT) From: Nithesh Shetty Subject: Re: localqueue get To: users@qpid.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-900588554-1247586760=:77384" X-Virus-Checked: Checked by ClamAV on apache.org --0-900588554-1247586760=:77384 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi, the listener sample has the following settings; =A0SubscriptionManager subscriptions(session); =A0SubscriptionSettings settings;=0A=A0settings.exclusive =3D false;=0A=A0s= etting.flowControl =3D FlowControl::messageWindow(1); =A0settings.acceptMode =3D ACCEPT_MODE_EXPLICIT;=0A=A0settings.acquireMode = =3D ACQUIRE_MODE_PRE_ACQUIRED; =A0LocalQueue local_queue; =A0subscriptions.subscribe(local_queue, "RMS", settings, "rmsset"); Message message;local_queue.get(message, 10); Now even after the depth of queue is more than 20 i have experiencedthat ge= t gives an exception saying queue is empty is there any particular=A0reason= for that or again any change in the configuration. Awaiting your reply. Regards, Nithesh =0A --- On Mon, 7/13/09, Nithesh Shetty wrote: =0A From: Nithesh Shetty Subject: Re: localqueue get To: users@qpid.apache.org Date: Monday, July 13, 2009, 1:14 PM =0Ahi, =A0 =A0the listener sample has the following settings; =A0SubscriptionManager subscriptions(session); =A0SubscriptionSettings settings; =A0settings.acceptMode =3D ACCEPT_MODE_EXP; =A0settings.acquireMode =3D ACQUIRE_MODE_PRE_ACQUIRED; =A0LocalQueue local_queue; =A0subscriptions.subscribe(local_queue, "RMS", settings, "rmsset"); =A0 Message message =3D local_queue.get(); =A0 before getting the message i=A0put=A0a breakpoint over here and=A0i execute= another exe to get the message(timeout infinity) but it hangs=A0 till the = above code gets the message and closes the connection. =A0 Awaiting your reply. =A0 Nithesh =A0 =A0 --- On Mon, 7/13/09, Gordon Sim wrote: From: Gordon Sim=0A Subject: Re: localqueue get To: users@qpid.apache.org Date: Monday, July 13, 2009, 11:34 AM Nithesh Shetty wrote: > the listener sample has the following settings; > SubscriptionManager subscriptions(session); > SubscriptionSettings settings; > settings.acceptMode =3D ACCEPT_MODE_NONE; > settings.acquireMode =3D ACQUIRE_MODE_PRE_ACQUIRED; > LocalQueue local_queue; > subscriptions.subscribe(local_queue, "RMS", settings, "rmsset"); >=A0 Message message =3D local_queue.get(); >=A0 %%%%%%%%%%%%%%%%%%%%%%%%%%%%% >=A0 now the problem is if i put ten message in the queue and get one messa= ge and then close > the connection the=0A rest of the nine message gets dequeued... ACCEPT_MODE_NONE means that the broker will dequeue the message as soon as = it is delivered. As you are using the default flow control settings for you= r client, the broker will send as many messages to the client as it can, re= gardless of whether the client application has received the earlier message= s. If you want the transfer from broker to subscribers to be reliable, use ACC= EPT_MODE_EXPLICIT. --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project:=A0 =A0 =A0 http://qpid.apache.org Use/Interact: mailto:users-subscribe@qpid.apache.org =A0 =A0 =A0 =0A=0A=0A --0-900588554-1247586760=:77384--