Quartz ComponentThe quartz: component provides a scheduled delivery of messages using the Quartz scheduler URI formatquartz://timerName?parameters quartz://groupName/timerName?parameters quartz://groupName/timerName/cronExpression You can configure the Trigger and JobDetail using the parameters
For example the following routing rule will fire 2 timer events to the endpoint mock:results from("quartz://myGroup/myTimerName?trigger.repeatInterval=2&trigger.repeatCount=1").to("mock:result"); Using Cron TriggersQuartz supports Cron-like expressions For example the following will fire a message at 12pm (noon) every day from("quartz://myGroup/myTimerName/0/0/12/*/*/$").to("activemq:Totally.Rocks"); which is equivalent to using the cron expression 0 0 12 * * ? The following table shows the URI character encodings we use to preserve valid URI syntax
See Also |