This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 17276
    
    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 - iOS Apps
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to implement dynamic scheduling(cron job/trigger) in Spring
 
It's not a secret anymore!