Red Hat Training

A Red Hat training course is available for JBoss Enterprise SOA Platform

8.25.6. Scheduled Listener

The <scheduled-listener> can be used to perform scheduled tasks based on a <simple-schedule> or <cron-schedule> configuration.
It's configured with an event-processor class, which can be an implementation of one of org.jboss.soa.esb.schedule.ScheduledEventListener or org.jboss.soa.esb.listeners.ScheduledEventMessageComposer.
ScheduledEventListener
Event Processors that implement this interface are simply triggered through the “onSchedule” method. No action processing pipeline is executed.
ScheduledEventMessageComposer
Event Processors that implement this interface are capable of “composing” a message for the action processing pipeline associated with the listener.
The attributes of this listener are:
  1. name: The name of the listener instance
  2. event-processor: The event processor class that is called on every schedule trigger. See above for implementation details.
  3. One of:
    1. name: The name of the listener instance.
    2. scheduleidref: The scheduleid of the schedule to use for triggering this listener.
    3. schedule-frequency: Schedule frequency (in seconds). A convenient way of specifying a simple schedule directly on the listener.