This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes Need to run a schedule task only once in betweeen mentioned hours. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Need to run a schedule task only once in betweeen mentioned hours." Watch "Need to run a schedule task only once in betweeen mentioned hours." New topic
Author

Need to run a schedule task only once in betweeen mentioned hours.

kiran nyala
Ranch Hand

Joined: Sep 21, 2009
Posts: 47

Hi,
I need to run a schedule task only once in betweeen mentioned hours.
For the below configuration My service class method transferLookUpData() is executing for every one minute daily.

Now I try to run this daily once between 9pm to 12pm. To acheive this i tried

But even the server time not between 21hr - 24hr it is executing. More over I need to run this scheduler only once in between 21hr and 24hr.
Please suggest the cron format for this.
Surendra Kumar
Ranch Hand

Joined: Jul 04, 2006
Posts: 235
Only 0-23 are allowed for hour. Please try 21-23 and see if it works.
 
Don't get me started about those stupid light bulbs.
 
subject: Need to run a schedule task only once in betweeen mentioned hours.
 
Similar Threads
use cron in spring 2.5
can we notify if scheduler task not running at given time intervals
Dynamically adding/removing task in Scheduled Task
Cron expression with Spring Task scheduler
Simple Spring Batch