How to call Java method on patricular interval of time which is deployed to Apache Tomcat server as a web application?
<p>I'm developing an web application which is developed in Struts 2 and I'm deploying it on Apache Tomcat server. </p>

<p>I want to do database cleanup on daily basis automatically. </p>

<p>Also I want to to call a method in java class with 10 minutes of interval. Any suggestion for this.</p>