Quartz Scheduler Configuration Guide : Global Listener Configuration
Global Listener Configuration
Global listeners can be instantiated and configured by StdSchedulerFactory, or your application can do it itself at run time, and then register the listeners with the scheduler. Global listeners listen to the events of every job and trigger rather than just the jobs and triggers that reference them directly.
Configuring listeners through the configuration file consists of giving then a name, and then specifying the class name, and any other properties to be set on the instance. The class must have a no-arg constructor, and the properties are set reflectively. Only primitive data type values (including Strings) are supported.
Configuring a Global TriggerListener
The general pattern for defining a global TriggerListener is:
org.quartz.triggerListener.NAME.class = com.foo.MyListenerClass
org.quartz.triggerListener.NAME.propName = propValue
org.quartz.triggerListener.NAME.prop2Name = prop2Value
Configuring a Global JobListener
The general pattern for defining a global JobListener is:
org.quartz.jobListener.NAME.class = com.foo.MyListenerClass
org.quartz.jobListener.NAME.propName = propValue
org.quartz.jobListener.NAME.prop2Name = prop2Value
Copyright © 2010-2016 Software AG, Darmstadt, Germany.

Product Logo |   Feedback