running periodic task at server side for servlet JSP MVC website [duplicate]
问题 This question already has answers here : How to run a background task in a servlet based web application? (5 answers) Closed 2 years ago . I have developed a web application using using servlet and JSP. I am not using any framework per se, instead using my own home brewed MVC framework. I am using MySQL as a backend. I want to do the following: Clean up some data from the data base every hour Generate and store statistics about data every 15 minutes in an XML file somewhere The problem is: