I agree, leave all the web specific stuff out of it.

I wrote a little program that ran on a timer and broke it down into two simple 
classes.  One class does the actual work, the other class wraps the first one and 
implements the Struts Plug-In and Runnable interfaces.  Simple, easy.  

Putting the business logic into a non-web related object makes it reusable and 
malleable.  The wrapper class is simply used as an invocation mechanism by the web 
container that calls the first object (which is the real program).  I don't think I 
could have made it any simpler.

http://www.c2.com/cgi/wiki?DoTheSimplestThingThatCouldPossiblyWork


-----Original Message-----
From: EL AKARI Mehdi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 9:07 AM
To: Struts Users Mailing List
Subject: Re: Scheduler



Hi all,

In my opinion, an application that should do the job you specified has
nothing to do with struts.
I think that it should be developpend independently of the struts one (wich
is essencially designed for a web UI).
Off course you can plugg your application to the struts one (so as it coud
start and stop with a single command) but this should not be mandatory (if
you design well your application arcitecture).
isn't it?

Mehdi.

Ps: Think of the "Time" and "TimerTask" classes wich provide the nessessary
tools for scheduling thousands of tasks concurrently.


----- Original Message ----- 
From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]: "Struts Users Mailing
List" <[EMAIL PROTECTED]: Tuesday, December 02, 2003 11:47
AM
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]

Reply via email to