RE: invoking Thread.Sleep() from a servlet instance

2005-06-01 Thread Steve Kirk

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:[EMAIL PROTECTED] 
 Sent: Tuesday 31 May 2005 18:50
 To: Tomcat Users List
 Subject: Re: invoking Thread.Sleep() from a servlet instance
 
 
 It's allowed and typically a bad idea.
 
 
 -Tim
 
 Clark O'Brien wrote:
 
  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 
  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
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: invoking Thread.Sleep() from a servlet instance

2005-05-31 Thread Tim Funk

It's allowed and typically a bad idea.


-Tim

Clark O'Brien wrote:


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 
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



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]