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>