aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Which scheduler is suitable for the below requirement 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 » Java » Other JSE/JEE APIs
Bookmark "Which scheduler is suitable for the below requirement" Watch "Which scheduler is suitable for the below requirement" New topic
Author

Which scheduler is suitable for the below requirement

preethi vs
Greenhorn

Joined: Dec 21, 2009
Posts: 4
Hi all,

I have the following requirement.

I have to start 3-4 schedulers between a start an end date and the timings for these schedulers are 9am, 1pm, 5pm, 10pm. And these start and end dates vary. For eg: I have to start 3 schedulers between 5th-10th Jan and another might be say 13th-17th Jan. So these dates might vary. But the timings on these dates are fixed as mentioned above. But only thing is I might have to schedule job at 9am and 1pm on day, and only at 10pm on another day and so on. So the number of times vary.

Can anyone please suggest which job and triggers I can use. Is it possible to have one scheduler for this?

Cheers
Preethi
preethi vs
Greenhorn

Joined: Dec 21, 2009
Posts: 4
Can Anyone please have a look at my post. Any help is appreciated
Deepak Rao
Ranch Hand

Joined: Jan 24, 2012
Posts: 31

Hi Preethi,

What OS are you using? Are you looking for any Java solution.

Try reading up on CRON for scheduling in Unix flavours.

If you are using windows , you can use Task Scheduler.

Thanks
Deepak
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10266
    
    8

Check out Quartz


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
preethi vs
Greenhorn

Joined: Dec 21, 2009
Posts: 4
Deepak Rao I am using windows. Yes I am looking for java solution, in fact Java schedulers.
Problem is I have to schedule jobs four times in a day and for each of these I have thousands of triggers might be running in the system.
Yes I have gone ahead with Cron only. But I am thinking about the scalability of the applications.
preethi vs
Greenhorn

Joined: Dec 21, 2009
Posts: 4
I went through Quartz api.
Can you please tell me whether Quartz itself can handle this or I have to do external thread pooling for this.
If possible can you please share piece of code which does the configuration for thousands of triggers.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10266
    
    8

Quartz can handle it for you. If you follow the link I provided, you will see a quick start guide under documentation
preethi vs wrote:...can you share piece of code

No can do, because the Ranch is NotACodeMill
Try it out and if you run into trouble, post your SSCCE code and we can help you figure out what's wrong.

PS. Also please check your private messages for an important administrative matter.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Which scheduler is suitable for the below requirement