I have serveral "jobs" currently running as scheduled task on my webapp-windows-server. I want to "integrate" them (as they are simple java-commandline-apps) into my JSF/Tomcat webapp and trigger them from there.
So I need some good "Cronjob"-Functionality-Library or similar, to that I can execute these "Runnables" from the running JSF-Application by cronjob-style-configuration ("* * * * *") - defined by the user.
The cronjob should also be abortable (I want to hold a list which contains all these threads to be able to kill them on demand).
As there are no best-practises, I want to figure out what a possible solution would be.
What I don't know is how to execute these "Runnables" automatically by the before mentioned cronjob-excecution-plan. There may be solutions (as Quartz-Scheduler (http://www.quartz-scheduler.org/)), but I don't have any experience with them and if I start wrong, the whole application could suffer.
So the question is: How do other "cronjob"-framework work inside (so that I can answer the side-question: Is is a good idea to build an own (ApplicationScoped) "Scheduler" which checks e.g. by a thread every second if there is any fitting runnable to execut?)