This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I need to build a utility, which will reside in my application server and will run, regularly after particular interval, say 30 Min. read data from some webpage and then email the extracted information of that page.
My question is, how can i make a java class to run/execute after particular interval of time? regularly!
should i make it a servlet and put it in application server or it should be normal java class?
The difference between <b>failure</b> and <b>success</b> is often being <b>right</b> and being <b>exactly right</b>.
The kind of app stand alone or web app depends on the requirement or the way you want to use that. java.util.Timer / TimerTask, javax.ejb.TimedObject along with 'java.util.concurrent' package should of be your interest.