This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to add job for running Quartz scheduler instance?

 
Manoj Maniraj
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume this is programatically?

What code have you tried so far?
 
Manoj Maniraj
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic