Is It possible to change dynamically delay on a Scheduled Poller in Camel via JMX?
- by sebbrousse
I would like to set/change the delay of a File consumer at runtime through JMX.
I am able to change the value of the property but it doesn't seem to be taken into account until I restart the consumer.
Example with the camel-archetype-java and its basic file example:
Run It
Change the delay of the File Consumer by calling the setDelay Operation with the JConsole
Delay property of the Consumer is changed but logs show it continues to poll at 500ms by default
Stop/Start the consumer
New value of delay is used by the consumer
Do I need anothers steps or active any configuration to make it work at runtime?