Camel-quartz

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Camel-quartz

puru_sadar
Hi,
I have a routes which is scheduled to execute using quartz, it executes as scheduled. But I want to execute the route initially when the application is installed.
Reply | Threaded
Open this post in threaded view
|

Re: Camel-quartz

Christian Mueller
Administrator
http://camel.apache.org/timer.html is what you are looking for, IMO. Use the option 'repeatCount=1' to make sure the route is only fired once.
http://camel.apache.org/quartz.html has a similar option (trigger.repeatCount) but is less lightweight.

Best,
Christian