Once I needed to do a scheduling. What I did was create a thread that contains an infinite loop with a sleep call (for the time to wait to execute) and the statement to be executed. Don't know if this is the better way, but worked. See the Javadoc for java.lang.Thread for information about how to implement it. []'s, Rodrigo. > -----Mensagem original----- > De: Raghu Movva [mailto:[EMAIL PROTECTED]] > Enviada em: Quinta-feira, 10 de Maio de 2001 05:15 > Para: [EMAIL PROTECTED] > Assunto: any ideas on scheduling in java > > > Hi all, > I have a requirement to send emails after every 4 hours. > Is there any > class in java for scheduling that task. I have used Timer > and TimerTask > classes of java.util package. There we have to create the > program running > all the time. Is there any way so that the thread will run in the > background and schedules the task. > > Expecting a reply > Regards > Raghu > =========================================================================== 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://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
