This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes How to add job for running Quartz scheduler instance? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "How to add job for running Quartz scheduler instance?" Watch "How to add job for running Quartz scheduler instance?" New topic
Author

How to add job for running Quartz scheduler instance?

Manoj Maniraj
Ranch Hand

Joined: Mar 25, 2009
Posts: 38
Hi guys,

I want to add a job to the running quartz scheduler instance. I know the instance name, with that i need to get the scheduler and add the job to it. Can anybody help me on this?

thanks..


http://manojmaniraj.blogspot.com
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

I assume this is programatically?

What code have you tried so far?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Manoj Maniraj
Ranch Hand

Joined: Mar 25, 2009
Posts: 38
Hi Martijn,

Thanks for your reply..

I got it working. Following is the code I used

Scheduler scheduler = new StdSchedulerFactory().getScheduler("InfoSmartScheduler");
scheduler.addJob(jobDetail, replace);
scheduler.scheduleJob(trigger);


Cheers,
Manoj
 
wood burning stoves
 
subject: How to add job for running Quartz scheduler instance?