I have a requirement where in, I need to execute n tasks at certain intervals of times. I have a database which would contain the values needed to execute the task – java and I have an Apache webserver configured on a Windows platform.
Could somebody please guide me in accomplishing this task.
You can use Quartz api for this pourpose.
Quartz is scheduling API its easy to use and does initialization of scheduling.
You can use simple trigger with millisecond and repeat jobs and set repeat intervals. Advance Trigger CronTrigger works exactly same unix cron. In CronTrigger we can define, selected days e.g. Wednesday, Friday weekly, monthly and yearly.
Here is a sample tutorial that explains how to use it
Quartz with Simple Servlet
web.xml
InitializeServlet.java
CronScheluder.java
MyJob.java