A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Confuguring tomcat to Run Thread at rgular intervals of Time
Joined: Apr 05, 2006
Oct 23, 2008 01:30:00
I have an appplication which needs to create and upddate RSS Xml at reglar intervals of time.
Creating the XML is done.
Now i need to run this bunch of code to create th XML at regular intervals of time. Can some one help me how to configure
to run it as a Thread
at tomcat start up and at regular intervals
I am using JDK6,tomcat6,
Joined: Mar 22, 2005
Oct 23, 2008 01:36:00
You could use a ServletContextListener that sets up those threads using the java.util.Timer and TimerTask classes in its contextInitialized method.
Ping & DNS
- my free Android networking tools app
I agree. Here's the link:
subject: Confuguring tomcat to Run Thread at rgular intervals of Time
Watch a Folder
cannot get the green circle to smear
a regular activity and Thread
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014