• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Cron expression for executing job every hour. + quartz scheduler

 
Ranch Hand
Posts: 763
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 763
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

it worked.
 
Sheriff
Posts: 22504
122
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 282
Eclipse IDE PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's not really a Java question either.
 
Rob Spoor
Sheriff
Posts: 22504
122
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 763
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic