Write a thread to check database in web application 2007-11-05 - By Christopher Schultz
Back -- --BEGIN PGP SIGNED MESSAGE-- -- Hash: SHA1
Ashish,
Ashish Kulkarni wrote: > 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..
Lots of folks use Quartz for this kind of thing. It's a cron-like Java API.
- -chris
-- --BEGIN PGP SIGNATURE-- -- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHLzuW9CaO5/Lv0PARAvhJAJwJd7S+Na4wkxGn1UYHvNcemQ1lcQCcDEos VV6I06VumxlOsvYWymxisDM= =xZD2 -- --END PGP SIGNATURE-- --
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|