tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Adams <bad...@AEM-TX.com>
Subject RE: "Scheduled Process" servlet: possible?
Date Tue, 29 Jan 2002 21:25:41 GMT
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:jeffcorliss@yahoo.com]
Sent: Tuesday, January 29, 2002 3:21 PM
To: tomcat-user@jakarta.apache.org
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:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message