Hi Ritu, > how to will I configure XML so that route will only run once
Access CamelContext in Processor and close the route via CamelContext#stopRoute(). from("direct:stopRoute"). process(new Processor() { @Override public void process(Exchange exchange) throws Exception { String routeId = exchange.getIn().getBody(String.class); exchange.getContext().stopRoute(routeId); } }); Best regards. -- View this message in context: http://camel.465427.n5.nabble.com/Stopped-Routes-tp474159p5717843.html Sent from the Camel - Users mailing list archive at Nabble.com.