Search code examples
javaquartz-schedulernetbeans6.8

How to add job with trigger for running Quartz scheduler instance without restarting server


I want to create one scheduler instance then adding Jobs and triggers for future use to this scheduler running by web UI without restarting server (I use Quartz 2.x version) Can anybody help me please?

Thanks


Solution

  • You can dynamically add jobs to a Quartz scheduler instance but the jobs (i.e. the job classes) must be typically present on the Quartz scheduler's classpath. Alternatively you could use the Quartz scheduler's JobFactory API to load job classes through a custom class-loader and that would allow you to add jobs truly dynamically.

    With triggers, there is no problem at all - these can be added/updated/deleted dynamically using the standard Quartz API.

    As for a GUI that allows you to add jobs/triggers, there are couple of them and you can easily find them by searching for "quartz scheduler gui" on Google.

    I happen to be a principal developer of QuartzDesk, which is one of those products. If you have any questions regarding this product, then please use our contacts.