How to excute a method on particular date using Spring?

I have got a list of dates, on these dates I have to execute particular method. How do I proceed?

Answers


Create a quartz scheduler and configure cron trigger to fire up your service on particular date/time specified by comma separated cron expressions


Check this cron trigger expression examples shown here. You will have to use a Quartz scheduler in Spring. This might be a good place to start off with the Taskexecuter in Spring too.

http://docs.spring.io/spring/docs/3.0.x/reference/scheduling.html

http://quartz-scheduler.org/documentation/quartz-2.1.x/tutorials/crontrigger


Need Your Help

Haskell: list/vector/array performance tuning

optimization haskell data-structures vector

I am trying out Haskell to compute partition functions of models in statistical physics. This involves traversing quite large lists of configurations and summing various observables - which I would...

Where to save user created files

windows-7 save filesystems

My program is small and simple. It functions as a text editor with the exception of using credentials and encrypting save files.