tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alec <abicker...@opaltelecom.co.uk>
Subject Re: "Scheduled Process" servlet: possible?
Date Tue, 29 Jan 2002 23:37:48 GMT
Probably best to use a java.util.Timer

code snippet 

Timer t = new Timer();
t.schedule(Task,Date,INTERVAL)  	// Task is an object that inplements java.util.TimerTask
				// Date object is the time to first run
				// Interval is howmany milli's between execution 


for more info read Java 2 API docs is encouraged and neccarcary...

hope this helps
Alec 	

29/01/2002 21:21:18, Jeff Corliss <jeffcorliss@yahoo.com> wrote:

>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