Return-Path: Delivered-To: apmail-qpid-users-archive@www.apache.org Received: (qmail 26272 invoked from network); 10 Feb 2009 12:47:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Feb 2009 12:47:49 -0000 Received: (qmail 28612 invoked by uid 500); 10 Feb 2009 12:47:49 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 28596 invoked by uid 500); 10 Feb 2009 12:47:49 -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 28585 invoked by uid 99); 10 Feb 2009 12:47:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Feb 2009 04:47:49 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of adam.chase1@gmail.com designates 209.85.217.20 as permitted sender) Received: from [209.85.217.20] (HELO mail-gx0-f20.google.com) (209.85.217.20) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Feb 2009 12:47:41 +0000 Received: by gxk13 with SMTP id 13so3362565gxk.9 for ; Tue, 10 Feb 2009 04:47:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=SHRhyPuHjJNa2SEPa2VsUhZ3I4eANgjDPRlrH5UnwXw=; b=LyDTf7vBKsRRiReNvIuY7OIIPZa16Ly+VPih1PrBLvf1+JB2m1Cqjgcas8mp2hGmIT LCoYjAx7/ShpSbegUlmn6KOdJWBFj+zMZtqONpyigblvIiYj3QzK8V2XQwS5FFu8H/4v /A//8zS7FWrXMpKBn1tsxRxTipEaA9lyjfiJA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=I+3gXyM8kBdfJRIS4z0mZPDG++oiEgdPTwbWGurpsBarD1c0LDkggPx2hyzTNT2hvv HtXmMTcpT007bp/nQWwa8/uKwUQPlG6yFGU6U6hHl+j+nEDweyEj65l7Q3GiSfNKLPDk ULgqMiWqcqFYilx7m/wgmxRYSi3IBeTnzbn2Y= MIME-Version: 1.0 Received: by 10.150.53.2 with SMTP id b2mr2022931yba.70.1234270040448; Tue, 10 Feb 2009 04:47:20 -0800 (PST) In-Reply-To: <17e364b30902091219v1be7e514rfdfd8532e77d0f8d@mail.gmail.com> References: <17e364b30902091219v1be7e514rfdfd8532e77d0f8d@mail.gmail.com> Date: Tue, 10 Feb 2009 07:47:20 -0500 Message-ID: <17e364b30902100447vff0b2b3oed0000e4e5dd50ff@mail.gmail.com> Subject: Re: FailoverManager From: Adam Chase To: users@qpid.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org So I am basically re-acquiring the messages I had and remapping the set of messageIds (which can be different when you reconnect). It seems that TransportFailure exceptions in the listener thread at least can come in any Qpid API call, not just the ones you'd expect (getting exceptions in my received method all I'm doing is getting messageIds and header values). This makes programming these parts a little more challenging from a transactional perspective. I suppose if I get all my message data up front without exception, I can treat it as acquired, otherwise I'll get it again after the failover. Adam On Mon, Feb 9, 2009 at 3:19 PM, Adam Chase wrote: > First thank you for all the help you've been giving me, its been > extremely useful. > > My question now is about the FailoverManager. > > From what I can read, it essentially associates each command with a > session and then if that fails, reconnects you to the failover server > and lets you continue the work. > > But it looks like you must resubscribe to any queues that you had > subscribed to before the failover. > > If you are using synchronous sessions, is there much benefit to using > the FailoverManager? If I register a failureCallback on my > connection, could I handle the disconnect event without getting any > exceptions elsewhere in my program? > > Also I am using manual acknowledgment. When I failover, I must > reacquire all the messages that I had acquired previously, before > acknowledging them, right? Also, will the messageIds I get when I > reacquire necessarily be the same as the ones I got on the first > acquiring? > > Thanks, > > Adam > --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:users-subscribe@qpid.apache.org