You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Marco Crivellaro <ma...@gmail.com> on 2012/09/07 15:46:09 UTC
stop a quartz route
Hi All,
my Camel context is making use of a watchdog to monitor the status of the
application. In case a flag is set I would like to stop the watchdog, I
cannot find a way to stop the route.
The watchdog have been implemented using camel-quartz:
from("quartz://watchdog/checkpendingexchanges?trigger.repeatInterval=10000&trigger.repeatCount="
+ SimpleTrigger.REPEAT_INDEFINITELY)
.routeId("watchdog")
.process(new Processor() {
public void process(Exchange exchange) throws Exception {
//here I would like to stop the watchdog processor if a given
condition is met
}
}}).log(LoggingLevel.valueOf("TRACE"), "watchdog check completed");
--
View this message in context: http://camel.465427.n5.nabble.com/stop-a-quartz-route-tp5718779.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: stop a quartz route
Posted by Babak Vahdat <ba...@swissonline.ch>.
Hi
this FAQ should help:
http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html
Babak
--
View this message in context: http://camel.465427.n5.nabble.com/stop-a-quartz-route-tp5718779p5718780.html
Sent from the Camel - Users mailing list archive at Nabble.com.