Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 48471 invoked from network); 10 Feb 2003 19:07:25 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 10 Feb 2003 19:07:25 -0000 Received: (qmail 2723 invoked by uid 97); 10 Feb 2003 19:08:58 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@nagoya.betaversion.org Received: (qmail 2716 invoked from network); 10 Feb 2003 19:08:58 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 10 Feb 2003 19:08:58 -0000 Received: (qmail 46013 invoked by uid 500); 10 Feb 2003 19:06:57 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 45977 invoked from network); 10 Feb 2003 19:06:56 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 10 Feb 2003 19:06:56 -0000 Received: (qmail 57634 invoked by uid 1059); 10 Feb 2003 19:06:55 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 10 Feb 2003 19:06:55 -0000 Date: Mon, 10 Feb 2003 11:06:55 -0800 (PST) From: "Craig R. McClanahan" To: Tomcat Developers List Subject: RE: Shutdown.sh does not work when long lasting operations, such as SQL Queries, are still active! In-Reply-To: <76F08656F9ABF84F9AF1F0C12211BF690DDE81@torexchange1> Message-ID: <20030210110522.O41920@icarus.apache.org> References: <76F08656F9ABF84F9AF1F0C12211BF690DDE81@torexchange1> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Mon, 10 Feb 2003, Jindong Li wrote: > Date: Mon, 10 Feb 2003 13:53:52 -0500 > From: Jindong Li > Reply-To: Tomcat Developers List > To: 'Tomcat Developers List' > Subject: RE: Shutdown.sh does not work when long lasting operations, > such as SQL Queries, are still active! > > I think that's what we're experiencing here with Tomcat4.0.5...we have been > using TC401 and the shutdown is instant...but I think they have changed the > way TC is shutting down now...TC will gracefully shutdown i.e. waiting for > all threads finish and then exit... > > If you want...you can try TC401, see if you still experience the delay... > > I posted a similar message before and haven't got any response from the > community yet...:-( > It is OK for web applications to start threads -- as long as the web application cleans up after itself when the application is shut down (the easiest way to detect that is to create a ServletContextListener and wait for the contextDestroyed() method of your listener to be called). The JVM running Tomcat shuts down when all non-daemon threads have been killed. Tomcat properly cleans up all the threads that *it* creates -- it is up to your application to do the same. > Jindong. > Craig --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org