• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Mike London

dynamic scheduling in spring 3

Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic