Hi,

I'd like to create some configurable job. It should basically run between
certain hours of the day, so CRON should be the way to go.
I also found an example for this:

public class AppModule {

    @Startup
    public static void scheduleJobs(
                   PeriodicExecutor executor,
                   final CleanupService cleanupService) {

        executor.addJob(
            new CronSchedule("0 0/5 14 * * ?"),
            "Cleanup Job",
            new Runnable() {
                public void run() {
                    cleanupService.clean();
                }
            });
    }
}


I want to make this job configurable via some admin menu. BUT as the cron
starts within the AppModule, I cannot reexecute/updat it.
How could I run that scheduled job and change it's value?

Thanks



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Configurable-scheduled-jobs-tp5717769.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to