JBoss Community Archive (Read Only)

SwitchYard

Quartz

The quartz binding in SwitchYard provides support for triggering services with given cron expression.

The quartz binding is built on top of camel-quartz.

Generic options

Following options can be applied to <binding.quartz> definition:

  • name : name of job

  • cron : execution expression

  • stateful : use a StatefulJob; defaults to false

  • trigger.startTime : sets the trigger start time; format is yyyy-MM-dd'T'HH:mm:ss

  • trigger.endTime : sets the trigger end time; format is yyyy-MM-dd'T'HH:mm:as

  • trigger.timeZone : set the trigger timezone; format is any string accepted by java.util.TimeZone

Binding Services with Quartz

Here's an example of what a quartz service binding looks like:

<sca:composite name="camel-binding" targetNamespace="urn:switchyard-quickstart:camel-binding:0.1.0">
    <sca:service name="GreetingService" promote="GreetingService">
        <camel:binding.quartz>
            <camel:name>GreetingJob</camel:name>
            <camel:cron>0 0/5 * * * ?</camel:cron>
        </camel:binding.quartz>
    </sca:service>
</sca:composite>
JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 09:45:39 UTC, last content change 2013-11-14 19:17:46 UTC.