Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 36691 invoked from network); 14 Aug 2009 03:12:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Aug 2009 03:12:59 -0000 Received: (qmail 76335 invoked by uid 500); 14 Aug 2009 03:13:06 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 76299 invoked by uid 500); 14 Aug 2009 03:13:05 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 76289 invoked by uid 99); 14 Aug 2009 03:13:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2009 03:13:05 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2009 03:12:55 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MbnDX-00046O-Ad for users@activemq.apache.org; Thu, 13 Aug 2009 20:12:35 -0700 Message-ID: <24965591.post@talk.nabble.com> Date: Thu, 13 Aug 2009 20:12:35 -0700 (PDT) From: Michael Dehmlow To: users@activemq.apache.org Subject: Re: setTransportlistener missing from activemq cpp In-Reply-To: <1250206491.2660.14.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: dehmlowm@gmail.com References: <24961678.post@talk.nabble.com> <1250206491.2660.14.camel@localhost> X-Virus-Checked: Checked by ClamAV on apache.org Timothy Bish wrote: > > On Thu, 2009-08-13 at 16:04 -0700, Michael Dehmlow wrote: >> According to the failover docs for Java one should use the failover >> transport >> listener to receive notifications that a failover has occured. >> >> I can not find the interface to set a failover listener on the >> ActiveMQConnectionFactory as suggested by the documentation. >> >> Can you do this, and how? >> >> >> If you use failover, and a broker dies at some point, your sends will >> block >> by default. Using TransportListener can help with this regard. It is best >> to >> set the Listener directly on the ActiveMQConnectionFactory so that it is >> in >> place before any request that may require an network hop. > > The current official ActiveMQ-CPP 3.0.1 release does not offer this > functionality. If you want to pull down the trunk code the > ActiveMQConnection class allows you to register a TransportListener on > it that will have it transportInterrupted and transportResumed methods > invoked when a failover occurs. > > Regards > Tim. > > > -- > Tim Bish > http://fusesource.com > http://timbish.blogspot.com/ > > > > > Thanks Tim. -- View this message in context: http://www.nabble.com/setTransportlistener-missing-from-activemq-cpp-tp24961678p24965591.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.