This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Spring and the fly likes How to implement dynamic scheduling(cron job/trigger) in Spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Spring
Bookmark "How to implement dynamic scheduling(cron job/trigger) in Spring" Watch "How to implement dynamic scheduling(cron job/trigger) in Spring" New topic
Author

How to implement dynamic scheduling(cron job/trigger) in Spring

Shahid Pathan
Greenhorn

Joined: Dec 28, 2010
Posts: 23
I have a requirement to implement the dynamic corn job for sending SMS as per the provided the date and time. I am using spring3
Following is are the classes to collect the input and store in data base.


Now I want to implement the Scheduling job in Spring. I am going through the spring document and trying to implement those scenario.
If mean while if any one suggest me better approach and pointer to go ahead that will be great help.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

There are two ways. One with xml using the <task> namespace and one with Annotation using @Scheduled on the method. Both take CRON strings for setting when to schedule them

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
GeeCON Prague 2014
 
subject: How to implement dynamic scheduling(cron job/trigger) in Spring