This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Shahid Pathan
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic