kish
kish

Reputation: 85

How to change Camel quartz time during runtime

I have tried looking all over the internet and didn't find any proper document regarding camel quartz to change its time during run time. Does any one know how to work on it with out starting and stopping the camel route.

Upvotes: 2

Views: 989

Answers (1)

Claus Ibsen
Claus Ibsen

Reputation: 55525

If you enable JMX on quartz, then you can use JMX to change the timer. But beware doing so for cron is hard from jconsole as the quartz JMX API is not very good. The camel-quartz should enable JMX out of the box if you are using a fairly new version of Camel.

The hawtio web console has a quartz plugin that has a facade JMX API [1] that makes it easier to change the cron expression, which we also made the web console have a nice UI that allows you to do so.

Upvotes: 1

Related Questions