Ashish Kulkarni wrote:
Hi
I have to write a thread in web application which will check some values in
database, and then perform some function depending on the values.
There wont be any user input and this thread should be called after like 10
minutes, also i want to have a jsp page from where i can maintain this
thread, like stop, change the time it should run etc.
Are there any specific J2EE api i can use, or should i just use a time
thread, and store the handle to this thread in servlet context so i can
access and modify it..
Any suggections
If you're using Spring be sure to checkout its scheduling services. It
supports both Quartz and the JDK 1.3 Timer as underlying mechanisms.
Springs provides some very nice abstractions and features on top of
those raw scheduling libraries. And, of course, you get all all of the
other nifty spring stuff (like being able to DI dependencies into your
scheduled classes).
- Gary
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]