wood burning stoves 2.0*
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need to run a schedule task only once in betweeen mentioned hours.