Geronimo Plugins: Extensions for the Apache Geronimo Application Server

Quartz Job Deployer

This plugin lets you deploy Quartz jobs as Geronimo modules. In other words, you can create a JAR containing the job classes, with a Geronimo deployment plan providing the module ID, classpath, and execution schedule for the job. Then you can pack that plan in the JAR at META-INF/geronimo-quartz.xml or you can keep it outside the JAR.

When you've done this, you can use the normal Geronimo deployment tools to deploy, start, stop, and undeploy Quartz jobs. That includes the command-line deploy tool, the console, the Maven deployment plugin, etc. So for example, "java -jar bin/deployer.jar deploy my-job.jar" would schedule a job, while "java -jar bin/deployer.jar stop MyJob" would suspend it.

This plugin depends on the quartz-scheduler plugin that integrates the Quartz scheduler into Geronimo. There's a separate plugin available that allows you to manage the Quartz scheduler and jobs with the Geronimo admin console.

Last updated on 10/11/2006

Quartz Scheduler Integration

This plugin adds a Quartz scheduler to Geronimo. It provides Geronimo components representing the scheduler and scheduled jobs, which can be used by other applications as well as other Geronimo modules.

To use the scheduler from an application, add a gbean-ref to the Geronimo deployment plan for the application with ref-type org.gplugins.quartz.QuartzScheduler and pattern/name QuartzScheduler. From the QuartzScheduler, you can schedule and delete jobs, pause and resume, inspect and edit individual jobs, etc.

Note there are related plugins allowing you to deploy Quartz jobs as a JAR with XML plan defining the job schdule, and allowing you to manage the Quartz scheduler and jobs with the Geronimo admin console.

Last updated on 10/11/2006