Red Hat Training

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

8.25.7. Sample Configuration Combining the Scheduled Listener and Cron Scheduler

The following code depicts an example configuration involving the <scheduled-listener> and the <cron-schedule>.
<?xml version = "1.0" encoding = "UTF-8"?>
<jbossesb xmlns="">

        <schedule-provider name="schedule">
            <cron-schedule scheduleid="cron-trigger" cronExpression="0/1 * * * * ?" />

        <service category="ServiceCat" name="ServiceName" description="Test Service">

                <scheduled-listener name="cron-schedule-listener" scheduleidref="cron-trigger" 
                     event-processor="org.jboss.soa.esb.schedule.MockScheduledEventMessageComposer" />

                <action name="action" class="org.jboss.soa.esb.mock.MockAction" />