Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 66691 invoked from network); 1 Jun 2005 13:42:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Jun 2005 13:42:30 -0000 Received: (qmail 57096 invoked by uid 500); 1 Jun 2005 13:42:14 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 57080 invoked by uid 500); 1 Jun 2005 13:42:13 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 57059 invoked by uid 99); 1 Jun 2005 13:42:13 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from anchor-post-31.mail.demon.net (HELO anchor-post-31.mail.demon.net) (194.217.242.89) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 01 Jun 2005 06:42:10 -0700 Received: from steve-kirk.demon.co.uk ([80.177.0.37] helo=sjkdesktop) by anchor-post-31.mail.demon.net with esmtp (Exim 4.42) id 1DdTQD-000OrN-5u for tomcat-user@jakarta.apache.org; Wed, 01 Jun 2005 13:38:14 +0000 From: "Steve Kirk" To: "'Tomcat Users List'" Subject: RE: invoking Thread.Sleep() from a servlet instance Date: Wed, 1 Jun 2005 14:41:57 +0100 Message-ID: <001b01c566af$ae924a60$0201a8c0@sjkdesktop> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 In-Reply-To: <429CA3B1.6030607@joedog.org> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I have used Thread.sleep() in a webapp, but not within a servlet as = such. I wrote Runnable classes that were started in their own thread of = execution when the webapp started up. This worked fine. > -----Original Message----- > From: Tim Funk [mailto:funkman@joedog.org]=20 > Sent: Tuesday 31 May 2005 18:50 > To: Tomcat Users List > Subject: Re: invoking Thread.Sleep() from a servlet instance >=20 >=20 > It's allowed and typically a bad idea. >=20 >=20 > -Tim >=20 > Clark O'Brien wrote: >=20 > > I am looking for insight on invoking Thread.sleep() > > from a Tomcat Servlet. I understand it is explicitly > > prohibited in the J2EE spec and it is not hard to=20 > > comprehend that invoking sleep on a thread that is > > processing multiple requests could cause serious side > > effects. Still I hear rumors that Tomcat allows sleep > > invocations and I occasionally see it done. > > clark > >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org