File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Cron expression for executing job every hour. + quartz scheduler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Cron expression for executing job every hour. + quartz scheduler" Watch "Cron expression for executing job every hour. + quartz scheduler" New topic
Author

Cron expression for executing job every hour. + quartz scheduler

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 751
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: 751

it worked.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19543
    
  16

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 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Michael Angstadt
Ranch Hand

Joined: Jun 17, 2009
Posts: 272

It's not really a Java question either.


SCJP 6 || SCWCD 5
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19543
    
  16

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: 7056
    
  16

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


Isn't it funny how there's always time and money enough to do it WRONG?
Artlicles by Winston can be found here
Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 751
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
 
Similar Threads
I need major help!
Issue in Quartz rescheduling
cron expression for every 45 minutes
Thread Scheduler
Need help with Quartz's Cron Expression