Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 96369 invoked from network); 19 Mar 2009 08:56:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Mar 2009 08:56:12 -0000 Received: (qmail 73384 invoked by uid 500); 19 Mar 2009 08:56:11 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 73360 invoked by uid 500); 19 Mar 2009 08:56:11 -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 73349 invoked by uid 99); 19 Mar 2009 08:56:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Mar 2009 01:56:11 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,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; Thu, 19 Mar 2009 08:56:01 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LkE2N-0006Pg-NR for users@activemq.apache.org; Thu, 19 Mar 2009 01:55:39 -0700 Message-ID: <22595095.post@talk.nabble.com> Date: Thu, 19 Mar 2009 01:55:39 -0700 (PDT) From: mffrench To: users@activemq.apache.org Subject: Re: Killing activemq with connected JMS listener In-Reply-To: <47252781-A4DE-4DE7-A3DE-E6C597D96557@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: mffrench@axway.com References: <22576446.post@talk.nabble.com> <3a73c17c0903180954x54d017e9t2f2c0246ba4c3176@mail.gmail.com> <22583895.post@talk.nabble.com> <3a73c17c0903181041g5afa6ac7s1f7225db66ce6833@mail.gmail.com> <22585079.post@talk.nabble.com> <22585097.post@talk.nabble.com> <47252781-A4DE-4DE7-A3DE-E6C597D96557@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hello, I didn't register any ExceptionListener in my JMS consumer nor in my JMS producer. So there is no treatment of any kind which can hide the waited exception and do an automatic reconnection for example - I'll be happy to do this but without any exception raised from activemq I do not know how to achieve this kind of feature ... ++ rajdavies wrote: > > You've registered a JMS ExceptionListener with the Connection ? > > On 18 Mar 2009, at 18:06, mffrench wrote: > >> >> must add I tested the same code with other queuers (QPID, ...) and I >> get >> exception with these queuers ... >> >> >> mffrench wrote: >>> >>> yes my client is connected... and it only receive message (it's a jms >>> listener). >>> can you tell me what options I must set to enable the log level in >>> the >>> activemq client ? >>> >>> Some netstat >>> >>> Before killing : >>> >>> tcp6 0 0 *:61611 *:* >>> LISTEN >>> 18673/java >>> tcp6 0 0 localhost:35073 localhost:61611 >>> ESTABLISHED18727/java >>> tcp6 0 0 localhost:61611 localhost:35073 >>> ESTABLISHED18673/java >>> >>> After killing : >>> >>> tcp6 0 0 localhost:61611 localhost:35073 >>> TIME_WAIT - >>> >>> The listener is alway running and no exception is raised... >>> >>> >>> Gary Tully wrote: >>>> >>>> Is your client really connected? Has it sent or received a >>>> message. With >>>> activemq, the connection is created on demand on first but not >>>> when the >>>> connection factory is created. >>>> Can you enable debug logging and see what additional information >>>> you can >>>> gather? >>>> >>>> 2009/3/18 mffrench >>>> >>>>> >>>>> Here's my JNDI configuration : >>>>> >>>>> java.naming.factory.initial = >>>>> org.apache.activemq.jndi.ActiveMQInitialContextFactory >>>>> java.naming.provider.url = tcp://127.0.0.1:61611 >>>>> connectionFactoryNames = MICHEL >>>>> queue.TEST = TEST >>>>> >>>>> As you can see I provide a brokerUrl with tcp://... and I never >>>>> get any >>>>> exceptions... >>>>> >>>>> >>>>> Gary Tully wrote: >>>>>> >>>>>> If this is 5.2, and you do not provide a brokerUrl to your >>>>>> activemq >>>>>> connection factory then the failover transport will be used by >>>>>> default >>>>> and >>>>>> it will block waiting to reconnect. >>>>>> Provide a brokerUrl and use "tcp://..." and you will get the >>>>>> exception >>>>> you >>>>>> require. >>>>>> >>>>>> 2009/3/18 mffrench >>>>>> >>>>>>> >>>>>>> Hello, >>>>>>> >>>>>>> if I kill ActiveMQ, there is no exception raised to my >>>>>>> connected JMS >>>>>>> listener and so my client doesn't detect the link is broken with >>>>>>> ActiveMQ. >>>>>>> I >>>>>>> think this is a bug which should be corrected. Is there any issue >>>>> about >>>>>>> this >>>>>>> ? >>>>>>> >>>>>>> Thanks >>>>>>> -- >>>>>>> View this message in context: >>>>>>> >>>>> http://www.nabble.com/Killing-activemq-with-connected-JMS-listener-tp22576446p22576446.html >>>>>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> http://blog.garytully.com >>>>>> >>>>>> Open Source SOA >>>>>> http://FUSESource.com >>>>>> >>>>>> >>>>> >>>>> -- >>>>> View this message in context: >>>>> http://www.nabble.com/Killing-activemq-with-connected-JMS-listener-tp22576446p22583895.html >>>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >>>>> >>>>> >>>> >>>> >>>> -- >>>> http://blog.garytully.com >>>> >>>> Open Source SOA >>>> http://FUSESource.com >>>> >>>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Killing-activemq-with-connected-JMS-listener-tp22576446p22585097.html >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >> > > > -- View this message in context: http://www.nabble.com/Killing-activemq-with-connected-JMS-listener-tp22576446p22595095.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.