| Author |
Cron expression for executing job every hour. + quartz scheduler
|
Jigar Naik
Ranch Hand
Joined: Dec 12, 2006
Posts: 729
|
|
Hi
I am using quartz scheduler
and i have following cron expression for executing job every hour.
can anybody tell me weather my cron expression is correct for executing job every hour.
I am in bit hurry (deal line is on my head )that's i am not able to test it.
please reply as soon as possible.
Thanks !!
|
Jigar Naik
|
 |
Jigar Naik
Ranch Hand
Joined: Dec 12, 2006
Posts: 729
|
|
it worked.
|
 |
Rob Spoor
Saloon Keeper
Joined: Oct 27, 2005
Posts: 18365
|
|
|
I think that testing yourself is usually faster than posting a message on some forum, then waiting for a reply. In this case, you have proven just that. You got the test up and running before even one reply was posted.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Michael Angstadt
Ranch Hand
Joined: Jun 17, 2009
Posts: 269
|
|
It's not really a Java question either.
|
SCJP 6 || SCWCD 5
|
 |
Rob Spoor
Saloon Keeper
Joined: Oct 27, 2005
Posts: 18365
|
|
Michael Angstadt wrote:It's not really a Java question either.
Yes it is. Quartz is a Java scheduler library.
|
 |
Joaquin Garcia
Greenhorn
Joined: May 24, 2012
Posts: 2
|
|
Rob Spoor wrote:I think that testing yourself is usually faster than posting a message on some forum, then waiting for a reply. In this case, you have proven just that. You got the test up and running before even one reply was posted.
Still found the confirmation quite useful to save me time testing it. There seems to be some confusion on the accepted values by looking at the table on http://www.quartz-scheduler.org/documentation/quartz-1.x/tutorials/crontrigger . It would appear 60 it's not an accepted value for seconds, minutes and hours. Even though it appears to work, wouldn't a 0 instead of 0/60 be the intended setup?
Thanks for the question/self answer!
|
 |
Winston Gutkowski
Bartender
Joined: Mar 17, 2011
Posts: 1595
|
|
Joaquin Garcia wrote:It would appear 60 it's not an accepted value for seconds, minutes and hours. Even though it appears to work, wouldn't a 0 instead of 0/60 be the intended setup?
Certainly it would in a crontab, so if Quartz uses the same format...
However, did you realize that you've revived a Thread that is nearly 3 years old?
Winston
|
More computing sins are committed in the name of efficiency (without necessarily achieving it)
than for any other single reason...including blind stupidity. — W.A. Wulf
|
 |
Jigar Naik
Ranch Hand
Joined: Dec 12, 2006
Posts: 729
|
|
|
Yes, it should be in other open source forum but still its inherited by java ;)
|
 |
Joaquin Garcia
Greenhorn
Joined: May 24, 2012
Posts: 2
|
|
Winston Gutkowski wrote:
Joaquin Garcia wrote:It would appear 60 it's not an accepted value for seconds, minutes and hours. Even though it appears to work, wouldn't a 0 instead of 0/60 be the intended setup?
Certainly it would in a crontab, so if Quartz uses the same format...
However, did you realize that you've revived a Thread that is nearly 3 years old?
Winston
Thanks for the reply. Yes, I know. I was looking for the correct setup on hourly triggers and this one was the only one providing an exact example which came up on first page searches. So I guess its still of use nowadays to whomever comes accross such a question.
joe
|
 |
 |
|
|
subject: Cron expression for executing job every hour. + quartz scheduler
|
|
|