wood burning stoves 2.0*
The moose likes Other Open Source Projects and the fly likes Quartz Sceduler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Quartz Sceduler" Watch "Quartz Sceduler" New topic
Author

Quartz Sceduler

Jyoti Aggarwal
Ranch Hand

Joined: May 26, 2009
Posts: 33
Hi
I need to create a scheduler that has to do around around 100 jobs at different time. What is the best way to got about this.
I am able to run 2-3 jobs at different time using different jobdetail group.


But there are like 100 job and and using different job group is not feasible. Please suggest.

And thing is, is there any way in Quartz where if the server is stopped for any reason ifor some time, so the jobs that has been scheduled during that period of time can be refired as soon as server is restarted?

Please answer soon its very urgent.
James Ward
Ranch Hand

Joined: Apr 27, 2003
Posts: 263
So, why have different groups, why not place all jobs in same group?
Only Job name within a group should be unique.
Jyoti Aggarwal
Ranch Hand

Joined: May 26, 2009
Posts: 33
As it is throwing the following error :
Scheduler not Initialised org.quartz.ObjectAlreadyExistsException: Unable to store Trigger with name: 'JobTrigger' and group: 'Job1', because one already exists with this identification.

Besides Cannot use map either as every jod has to be triggered at different time.
James Ward
Ranch Hand

Joined: Apr 27, 2003
Posts: 263
JobName needs to be unique, not JobGroup.

This should work:

is there any way in Quartz where if the server is stopped for any reason ifor some time, so the jobs that has been scheduled during that period of time can be refired as soon as server is restarted?


See this attribute of Trigger Class: MISFIRE_INSTRUCTION_SMART_POLICY, in the API documentation - http://quartz.sourceforge.net/javadoc/index.html. This deals with handling such cases.
Jyoti Aggarwal
Ranch Hand

Joined: May 26, 2009
Posts: 33
I have just tried it and it is giving same error. and besides how to used "MISFIRE_INSTRUCTION_SMART_POLICY"
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Could you try something like this:


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Quartz Sceduler