File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes dynamic scheduling in spring 3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "dynamic scheduling in spring 3" Watch "dynamic scheduling in spring 3" New topic

dynamic scheduling in spring 3

subbarao dachepalli

Joined: Jul 28, 2005
Posts: 5

I am using Spring 3.0.5

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.

Thanks in Advance.
I agree. Here's the link:
subject: dynamic scheduling in spring 3
It's not a secret anymore!