I have a Thread class that does some stuff for me every night and I wrapped
that with a servlet that calls .start() in the servlet init() method and
that servlet in loaded at start up via <load-on-startup>1</load-on-startup>
tag in web.xml (look below)
this Thread class sleeps for 24 hours then wakes up and performs its duties
then sleeps....
<servlet>
<servlet-name>PrinterCache</servlet-name>
<servlet-class>PrinterCache</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
-----Original Message-----
From: Jeff Corliss [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 3:21 PM
To: [EMAIL PROTECTED]
Subject: "Scheduled Process" servlet: possible?
Hi all,
Is it possible to have a servlet's service method
auto-invoked on a scheduled basis by its container?
Like say for example you want to have your app do some
auto-archiving of old data on a regular basis or
something like that?
Thanks,
Jeff
__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>