diumenge, 7 d’abril del 2013

Scheduled jobs with Spring Annotations


ApplicationContext.xml:

Scheduled service: The code in "doSchedule" will execute each 5 seconds in any of the 3 "@Scheduled" options proposed.


To get the scheduled rate from the application properties, define them in the applicationContext.xml:

Define the property:
And use it:

Cap comentari:

Publica un comentari a l'entrada