• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cron expression for executing job every hour. + quartz scheduler

 
Jigar Naik
Ranch Hand
Posts: 761
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 761
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

it worked.
 
Rob Spoor
Sheriff
Pie
Posts: 20369
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Michael Angstadt
Ranch Hand
Posts: 277
Eclipse IDE Java PHP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not really a Java question either.
 
Rob Spoor
Sheriff
Pie
Posts: 20369
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Michael Angstadt wrote:It's not really a Java question either.

Yes it is. Quartz is a Java scheduler library.
 
Joaquin Garcia
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 9451
49
Eclipse IDE Hibernate Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jigar Naik
Ranch Hand
Posts: 761
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it should be in other open source forum but still its inherited by java ;)
 
Joaquin Garcia
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic