Is It possible to change dynamically delay on a Scheduled Poller in Camel via JMX?

Posted by sebbrousse on Stack Overflow See other posts from Stack Overflow or by sebbrousse
Published on 2012-11-19T11:40:25Z Indexed on 2012/11/19 17:00 UTC
Read the original article Hit count: 125

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about jmx

Related posts about apache-camel