This week's book giveaway is in the Performance forum. We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line! See this thread for details.
I have multiple schedulers in multiple classes annotated with @Scheduled annotation with cron expression like:
1) @Scheduled(cron = "0 * * * * ?")
public void doSomething1()
2) @Scheduled(cron = "0 0/5 * * * *")
public void doSomething2()
Now i have a requirement where in i will get the cron expression from UI. and I have to reschedule the existing schedulers according to the expressions received from UI. I will be storing the values in DB.
I tried googling but did not get the solution.
Can you please suggest best approach for achieving this.