On Thu, 17 Oct 2002, Ionel Condor wrote: > Hi, > beyween two consecutive 'send mail' you may introduce a sleep, as follows: > <code> > Thread.currentThread().sleep(time_in_miliseconds); > </code>
Just a minor point: Thread.sleep() is static, so there's no need to run through currentThread(). You can just write Thread.sleep(millisec); The other usage can be misleading, since it looks like you're applying sleep() to a particular thread. But sleep() always applies to the currently executing thread; you can't make another thread sleep in this fashion. -- Shawn Bayern "JSTL in Action" http://www.jstlbook.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com