Hi, The only other way is to setup a Routebuilder that extends a Callback Handler interface and injects the time period value using a Callback handler. You could also use this callback Handler method to set a period value and bounce the route on the fly.
So your code would look like the way it is shown below ;) You can then call the Routebuilder from another piece of code and dynamically change the period and bounce the route as necessary... Hope this helps. Cheers, Ashwin... ========================================================== CallbackHandlerInterface.java --------------------------------- public interface TimePeriodCallbackInterface { protected void onTimePeriodSetEvent(long period); } YourRouteBuilder.java ------------------------- public class YourRouteBuilder extends RouteBuilder implements TimePeriodCallbackInterface { public void configure() { from("test-jms:queue:test.queue").to("file://test"); // set up a listener on the file component from(...) .routeId("myRoute") .to(...) } protected void onTimePeriodSetEvent(long period) { // Use method to stop and start the route "myRoute" with a new period value } } ----- --------------------------------------------------------- Ashwin Karpe Apache Camel Committer & Sr Principal Consultant FUSESource (a Progress Software Corporation subsidiary) http://fusesource.com Blog: http://opensourceknowledge.blogspot.com CamelOne 2011: http://fusesource.com/camel2011 --------------------------------------------------------- -- View this message in context: http://camel.465427.n5.nabble.com/Timer-period-tp4488758p4495542.html Sent from the Camel - Users mailing list archive at Nabble.com.