Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 10727 invoked from network); 23 Apr 2008 13:27:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Apr 2008 13:27:11 -0000 Received: (qmail 71866 invoked by uid 500); 23 Apr 2008 13:27:11 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 71841 invoked by uid 500); 23 Apr 2008 13:27: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 71828 invoked by uid 99); 23 Apr 2008 13:27:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Apr 2008 06:27: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 (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; Wed, 23 Apr 2008 13:26:27 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Joezg-0001sO-MO for users@activemq.apache.org; Wed, 23 Apr 2008 06:26:40 -0700 Message-ID: <16834603.post@talk.nabble.com> Date: Wed, 23 Apr 2008 06:26:40 -0700 (PDT) From: DominicTulley To: users@activemq.apache.org Subject: Tomcat doesn't shutdown when amq client used within webapp MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: dominic.tulley@telelogic.com X-Virus-Checked: Checked by ClamAV on apache.org When we shut down our tomcat server the java process does not terminate and it turns out that the culprit is a couple of threads belonging to the amq client library. The threads are "InactivityMonitor WriteCheck" and "InactivityMonitor ReadCheck". Having had a look at it there seem to be two possibilities. Either there is some client shutdown method we need to call which will ultimately call InactivityMonitor.stop(), or the two threads should be daemon threads so that they just evaporate. I put in a change to make them daemon threads (trivial change) and tomcat then shuts down correctly. So, my question is, do we need this change in AMQ or is there some shutdown call I should be making into the libraries? I am (as far as I can tell!) already closing all the connections we have open. Thanks, -Dominic -- View this message in context: http://www.nabble.com/Tomcat-doesn%27t-shutdown-when-amq-client-used-within-webapp-tp16834603s2354p16834603.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.