Hi Carlos, The new proposed EJB specification, 2.1, includes a timer service, which is supposed to provide the functionality you need.
However, it is tightly coupled with EJBs, specifically MDBs, and cannot be used outside the EJB model, at least for now. As the specification is in public review, you still can comment it, maybe telling them to move this timer service to a separate JSR. []s Michael Nascimento Santos System Architect Sun Certified Programmer for the Java 2 Platform ----- Original Message ----- From: "Carlos Vicente" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 05, 2002 4:32 AM Subject: Re: Sleeping Thread > Perhaps, someone with influence in the j2ee working group may propose such > funcionality in next release. (Or a new project of the Jakarta apache > group?) > > Certainly is a dessirable funcionality that appears in many mid-sized > projects. This can improve the portability of java developments instead of > platform dependant solutions or private developments. > > I hear many developments that offers such funcionaliy in pure java, but > obviusly these are mutually incompatible. > > Sorry for my english. > > -----Mensaje original----- > De: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]En nombre de Geert Van Damme > Enviado el: viernes, 05 de julio de 2002 8:51 > Para: [EMAIL PROTECTED] > Asunto: Re: Sleeping Thread > > > Lots of possibilities > > - Unix cron or windows scheduled job > - Create a background thread and DIY. > - Use a java.util.Timer > - Some JSP containers (e.g Resin) offer this functionality with a <run-at> > tag in web.xml > > > Geert Van Damme > > > -----Original Message----- > > From: A mailing list about Java Server Pages specification and reference > > [mailto:[EMAIL PROTECTED]]On Behalf Of Peter Dolukhanov > > Sent: vrijdag 5 juli 2002 0:26 > > To: [EMAIL PROTECTED] > > Subject: Sleeping Thread > > > > > > Dear All, > > > > > > > > I am currently writing a Java/JSP site - one of the problems I have > > (which I haven't encountered previously) is that I need a Java class (or > > some other process), to perform an action every 3 days. All this would > > invoke is calling a method, and I can handle the code from there. > > > > > > I am trying to work out what is the best way to do it. My current best > > idea is to have a Thread that runs and checks quite frequently for the > > first specified date/time, when that is reached a flag is set, and the > > thread sleeps for 3 days. > > > > > > > > Is this the best way to do it, or are there possibly better and more > > efficient days to achieve this? > > > > > > > > Many thanks, > > > > Peter Dolukhanov > > > > ================================================================== > > ========= > > 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 > > > > =========================================================================== > 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 > > =========================================================================== > 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 > =========================================================================== 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
