camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kalber <Karlheinz.Al...@swslt.com>
Subject Re: QuartzScheduler, reschedule running route
Date Thu, 02 Jun 2016 09:42:34 GMT
It's simple, 

remove route , replace fromDefintion  & add reoute:

  RouteDefinition d = context.getRouteDefinition(routeId);
  context.removeRouteDefinition(d);

  List<FromDefinition> inputs = d.getInputs();
  for (FromDefinition fromDefinition : inputs)

    fromDefinition.setUri(uri.replace(oldScheduler, newScheduler));


 context.addRoutes(r);



-----
kh
--
View this message in context: http://camel.465427.n5.nabble.com/QuartzScheduler-reschedule-running-route-tp5783159p5783384.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message