We are using an open source project called Quartz, available on source forge, for this kind of thing. It has been working really well here. We register classes with a cron style timer and at the given times the registered class is called back.
There is also mention in the documentation about how this works in containers and how the specs are not violated. regrds IV > from: Gurpreet Dhanoa <[EMAIL PROTECTED]> > date: Tue, 02 Dec 2003 12:15:16 > to: [EMAIL PROTECTED] > subject: Re: Scheduler > > Hi HG > > I will surely share the sucess after sucessfully implementing it. > Understand the value of this mailing list. > Dont wory dude. > > Thanks for help > > Cheers > gary > > > > > > > > ----- Original Message ----- > From: "HG" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Tuesday, December 02, 2003 5:38 PM > Subject: Re: Scheduler > > > > Please share your success with the rest of us... > > > > I am in need of similar functionality...very soon... > > > > ----- Original Message ----- > > From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Tuesday, December 02, 2003 1:04 PM > > Subject: Re: Scheduler > > > > > > > hi HG > > > > > > Thanks for the thought i have found the path tomove on. Hope it may work > > > out. Anyway thread problem is related to EJB Container as such strut > > allows > > > one to use Thread > > > > > > Thanks > > > Gary > > > ----- Original Message ----- > > > From: "HG" <[EMAIL PROTECTED]> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > Sent: Tuesday, December 02, 2003 5:26 PM > > > Subject: Re: Scheduler > > > > > > > > > > Hi Gurpreet > > > > > > > > I haven't tried this...but it came across my mind as I need something > > > > similar very soon. > > > > > > > > You could write a Struts plugin... init() method called on start of > > webapp > > > > and destroy() method called on shutdown of webapp. > > > > > > > > In the init() method you could start a thread that "wakes up" at > > specified > > > > interval, say each minute, to check if there is some tasks that need > to > > be > > > > done, eg sending mails, cleaning up, make some coffee (;-)) > > > > > > > > In the destroy method you could stop the thread again > > > > > > > > I don't know if this violates with the J2EE spec...I remember reading > > > > something about threads...but that might be for EJBs only...Anyone can > > > shed > > > > some light on this issue? > > > > > > > > Regards > > > > > > > > Henrik > > > > > > > > ----- Original Message ----- > > > > From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]> > > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > > Sent: Tuesday, December 02, 2003 12:47 PM > > > > Subject: Scheduler > > > > > > > > > > > > hi All > > > > > > > > > > > > I want to implement a scheduler program something at the starting of > the > > > > application or at the starting of tomcat. > > > > > > > > Basically i need one of my program to track all of the reminders i > have > > > set > > > > in an web-application. > > > > > > > > Say if i have set a reminder to send an email to client at 1400 hrs > then > > > it > > > > should send that email at that time without the need of signing into > the > > > > account. > > > > > > > > > > > > > > > > Any help will be of great use. > > > > > > > > > > > > Thanks > > > > Gary > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > 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] > > > > > > > > > --------------------------------------------------------------------- > > 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] > http://www.amazon.co.uk/exec/obidos/redirect-home?tag=velloscouk-21&placement=home_multi.gif&site=amazon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]