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 736E311F4F for ; Thu, 14 Aug 2014 06:15:58 +0000 (UTC) Received: (qmail 3204 invoked by uid 500); 14 Aug 2014 06:15:58 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 3163 invoked by uid 500); 14 Aug 2014 06:15:58 -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 3151 invoked by uid 99); 14 Aug 2014 06:15:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Aug 2014 06:15:57 +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 aconway@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Aug 2014 06:15:31 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7E6FRYr025624 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 14 Aug 2014 02:15:27 -0400 Received: from [10.3.112.25] (ovpn-112-25.phx2.redhat.com [10.3.112.25]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s7E6FPYc007303 for ; Thu, 14 Aug 2014 02:15:26 -0400 Message-ID: <1407996916.23881.8.camel@localhost> Subject: Re: Recreating sessions after an error in qpid.messaging client From: Alan Conway To: users@qpid.apache.org Date: Thu, 14 Aug 2014 08:15:16 +0200 In-Reply-To: <53EBA33B.4000503@ckjltd.co.uk> References: <53EA18F2.3020109@redhat.com> <53EBA33B.4000503@ckjltd.co.uk> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Virus-Checked: Checked by ClamAV on apache.org On Wed, 2014-08-13 at 18:41 +0100, CLIVE wrote: > The patch I applied at work to solve this issue has been working for a > while, I'm just struggling with time at the moment to get it > incorporated in to the QPID code base. > > All I did was add a 'reset()' method to the session and then used the > functionality already present in the qpid::messaging::Client::reconnect > method to create a new session and loop round recreating any associated > senders and receivers. > > If someone else wants to pick up the JIRA and apply the change then > please feel free, otherwise I will try and get it applied on my next day > off. Is this the right JIRA? https://issues.apache.org/jira/browse/QPID-5824 It is labeled "patch" but there's no attachment. If you attach your patch I can have a look. > > Clive > > > On 12/08/2014 14:38, Gordon Sim wrote: > > On 08/12/2014 02:28 PM, Jakub Scholz wrote: > >> In the qpid.messaging C++ API, many exceptions don't close the > >> connection > >> but only the session - for example when one tries to create a > >> receiver on a > >> queue which doesn't exist. > >> > >> As far as I understood it, in such situation I have to always > >> recreate the > >> session and all its senders / receivers manually one by one in my > >> application, is that correct? > > > > Yes, at present that is correct. > > > > (With AMQP 1.0, errors tend to be signalled at the link level, whereas > > with 0-10 it was at the session level). > > > >> Or is there some way how to let the library > >> recreate all of them for me - e.g. something like the reconnect() > >> method on > >> the connection level? > > > > There was a JIRA created[1] by Clive Lilley who I believe had a patch > > for this in the works. Clive, if you are reading this, any update? Is > > it still something you are working on? > > > > [1] https://issues.apache.org/jira/browse/QPID-5824 > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org > > For additional commands, e-mail: users-help@qpid.apache.org > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org > For additional commands, e-mail: users-help@qpid.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org