What sheduler do you recomand for standalone java console application?
Is Quartz the only option?
I want to execute tasks every x minutes and raport the return of operation in a text file.
What sheduler do you recomand for standalone java console application?
Is Quartz the only option?
I want to execute tasks every x minutes and raport the return of operation in a text file.
You can use java.util.Timer
or java.util.concurrent.ScheduledExecutorService
for this task
If you are using a Java EE application server, you can use an EJB @Timer for this.
Quartz is a commonly used scheduler library. However it sounds like you need something really simple. Can you just do something like this? (pseudocode)
while (!some_termination_condition) {
Result r = doTask();
logResult(r);
Thread.sleep (x_minutes*60*1000);
}