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 4D6596E9A for ; Fri, 15 Jul 2011 14:17:01 +0000 (UTC) Received: (qmail 7764 invoked by uid 500); 15 Jul 2011 14:17:00 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 7685 invoked by uid 500); 15 Jul 2011 14:17:00 -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 7677 invoked by uid 99); 15 Jul 2011 14:16:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2011 14:16:59 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lhornung@choppertrading.com designates 38.98.162.199 as permitted sender) Received: from [38.98.162.199] (HELO chj-ap-iron01b.chopperdev.com) (38.98.162.199) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2011 14:16:52 +0000 Received: from unknown (HELO chopperexchange.choppertrading.com) ([10.97.3.70]) by chj-ap-iron01b.chopperdev.com with ESMTP; 15 Jul 2011 09:19:56 -0500 Received: from chopperexchange.choppertrading.com ([10.97.3.70]) by chopperexchange.choppertrading.com ([10.97.3.70]) with mapi; Fri, 15 Jul 2011 09:16:30 -0500 From: Luba Hornung To: "users@qpid.apache.org" Date: Fri, 15 Jul 2011 09:16:29 -0500 Subject: RE: messages get resent after broker is restarted, C++ Thread-Topic: messages get resent after broker is restarted, C++ Thread-Index: AcxCzZH2GuhBPivaQ0W2Y3eMf4UmHwAK8R2Q Message-ID: <44AE62A7ED7A1F40AF0FC503B50F92780FDAEC2371@chopperexchange.choppertrading.com> References: <44AE62A7ED7A1F40AF0FC503B50F92780FDAEC22EB@chopperexchange.choppertrading.com> <4E20011B.5060105@redhat.com> In-Reply-To: <4E20011B.5060105@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org So there is no way to set message Durability in the version 0.6 with messag= ing API? Client API has message.getDeliveryProperties().setTtl() but messaging/Messa= ge.h does not have getDeliveryProperties() or setDurability() (mentioned in= the api help). -----Original Message----- From: Gordon Sim [mailto:gsim@redhat.com] Sent: Friday, July 15, 2011 3:58 AM To: users@qpid.apache.org Subject: Re: messages get resent after broker is restarted, C++ On 07/15/2011 12:47 AM, Luba Hornung wrote: > Why after qpid broker is restarted messages which had been received in a = previous session get received again? > > 1) I launch a broker, my server and a client. > > 2) Server sends messages to clients. > > 3) I disconnect broker by Ctrl+c > > 4) My client and server wait until I restart the broker again. > > 5) The messages that the server had sent in 2) are received by clien= ts again. > > After a connection gets broken, I re-open the session and create new send= ers and receivers with the same addresses. > I am using C++ qpid version 0.6, messaging api. The exactly-once mode is not yet supported; you will get at-least-once instead which can result in duplicates. --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:users-subscribe@qpid.apache.org CONFIDENTIALITY WARNING: This email including any attachments may contain p= rivileged or confidential information and is for the sole use of the intend= ed recipient(s). Any unauthorized use or disclosure of this communication i= s prohibited. This e-mail may also be subject to specific non-disclosure an= d confidentiality provisions. The information contained herein is the prop= erty of Chopper Trading, LLC. If you believe that you have received this e= mail in error, please notify the sender immediately and delete it from your= system. --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:users-subscribe@qpid.apache.org