Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 37355 invoked from network); 22 Feb 2009 19:11:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Feb 2009 19:11:14 -0000 Received: (qmail 66976 invoked by uid 500); 22 Feb 2009 19:11:02 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 66943 invoked by uid 500); 22 Feb 2009 19:11:02 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 66932 invoked by uid 99); 22 Feb 2009 19:11:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Feb 2009 11:11:02 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [193.252.22.159] (HELO smtp5.freeserve.com) (193.252.22.159) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Feb 2009 19:10:54 +0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3402.me.freeserve.com (SMTP Server) with ESMTP id D66AB1C00082 for ; Sun, 22 Feb 2009 20:10:31 +0100 (CET) Received: from smtp.homeinbox.net (unknown [91.109.138.90]) by mwinf3402.me.freeserve.com (SMTP Server) with ESMTP id B839B1C00083 for ; Sun, 22 Feb 2009 20:10:31 +0100 (CET) X-ME-UUID: 20090222191031755.B839B1C00083@mwinf3402.me.freeserve.com Received: from localhost (localhost [127.0.0.1]) by smtp.homeinbox.net (Postfix) with ESMTP id 710011A4931 for ; Sun, 22 Feb 2009 19:10:32 +0000 (GMT) X-Virus-Scanned: Debian amavisd-new at homeinbox.net Received: from smtp.homeinbox.net ([127.0.0.1]) by localhost (server01.dev.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kuOol3hsmHyW for ; Sun, 22 Feb 2009 19:10:26 +0000 (GMT) Received: from [192.168.0.9] (study03.dev.local [192.168.0.9]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.homeinbox.net (Postfix) with ESMTPSA id 26F061A40B7 for ; Sun, 22 Feb 2009 19:10:26 +0000 (GMT) Message-ID: <49A1A31E.3070701@apache.org> Date: Sun, 22 Feb 2009 19:10:22 +0000 From: Mark Thomas User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: How to close open connections after application stop? References: <1483394439.8001235298336627.JavaMail.root@vnr> <1677355586.8181235318089283.JavaMail.root@vnr> <49A17EBC.2090402@compulsivecreative.com> <395913169.8241235328374818.JavaMail.root@vnr> In-Reply-To: <395913169.8241235328374818.JavaMail.root@vnr> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Edoardo Panfili wrote: > Using this code in destroy() method of a servlet marked as > 1 Yep - that is the sort of code you'd need. Using a context listener would be a better solution as Tomcat is free to call destroy() on your Servlet whenever it likes. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org