[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: create a utility to do background tasks in tomcat
Check out Timer and TimerTask from java.util package.
Thanks and BR,
Yash Technologies Inc.
Quoting Poorav Chaudhari <email@example.com>:
> I want to create a utilty to do some tasks in the background, every hour or
> This is part of my web application running on tomcat using struts
> What would be a good way achieve this. is there any online resource that
> me how to implement this in tomcat. I am thinking maybe in my web.xml file
> can start up a servlet that sleeps and wakes itself up on regular intervals
> time. does tomcat start initialize the servlets using the same thread or
> it spawn a different thread for each servlet initialized through web.xml.
> my idea even hold any ground of implementing this or should i go some other
> Thanks for your input in advance.
> Poorav Chaudhari
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo