Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 15417 invoked from network); 7 Aug 2007 12:28:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Aug 2007 12:28:37 -0000 Received: (qmail 60025 invoked by uid 500); 7 Aug 2007 12:28:35 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 60000 invoked by uid 500); 7 Aug 2007 12:28:35 -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 59991 invoked by uid 99); 7 Aug 2007 12:28:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2007 05:28:35 -0700 X-ASF-Spam-Status: No, hits=4.0 required=10.0 tests=DNS_FROM_OPENWHOIS,FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.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; Tue, 07 Aug 2007 12:28:23 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IIOAS-0007nv-86 for users@activemq.apache.org; Tue, 07 Aug 2007 05:28:08 -0700 Message-ID: <12033227.post@talk.nabble.com> Date: Tue, 7 Aug 2007 05:28:08 -0700 (PDT) From: manishbel To: users@activemq.apache.org Subject: Re: Transport Listener Question In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: manishbel@yahoo.com References: <12028522.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Yes...although i forgot to mention that when connection is active the onCommand of the class handling the consumer is called. James.Strachan wrote: > > On 8/7/07, manishbel wrote: >> >> Hello >> >> I have been trying out TransportListener in my application, I basically >> have >> >> Class1 - that has the producer and acts as the Transport Listener. >> Class2 - that uses the consumer to receive the messages, this acts as a >> Transport Listener too. >> >> >> When i bring the broker down the Class1 that acts as the Transport >> Listener >> gets notified of the Transport Interruption but the Class2 that handles >> the >> message consumption is not notified of the Transport Interruption event. >> >> Is this the expected behavior? should the consumer not be notified of the >> lost connection? > > Are you calling connection.addTransportListener for both objects? > > > -- > James > ------- > http://macstrac.blogspot.com/ > > -- View this message in context: http://www.nabble.com/Transport-Listener-Question-tf4228121s2354.html#a12033227 Sent from the ActiveMQ - User mailing list archive at Nabble.com.