|
Timer has been edited by Claus Ibsen (Nov 09, 2008). Change summary: CAMEL-656 Timer ComponentThe timer: component is used to generate message exchanges when a timer fires You can only consume events from this endpoint. URI formattimer:name?options Where name of the Timer object which is created and shared across endpoints. So if you use the same name for all your timer endpoints then only one Timer object & thread will be used |
Exchange PropertiesWhen the timer is fired it adds the following information as properties to the Exchange.
Message HeadersWhen the timer is fired it adds the following information as headers to the IN message
SampleTo setup a route that generates an event every 60 seconds: from("timer://foo?fixedRate=true&period=60000").to("bean:myBean?methodName=someMethodName");
The above route will generate an event then invoke the someMethodName on the bean called myBean in the Registry such as JNDI or Spring. See Also |
Unsubscribe or edit your notifications preferences
