I tried injecting a Camel Context into the Route Policy, but it looks like
the route isn't yet created so it can't be deleted:

    @Override
    protected void doStart() throws Exception {
        LOG.info("In custom do start");
        
        boolean removed = camelContext.removeRoute("myServiceRoute");

        LOG.info("Removed route" + removed);
    }

Any other ideas?  Is it possible to conditionally import a route context
based on a Spring profile?

Thanks,
Yogesh



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-route-autostartup-no-endpoint-found-tp5764230p5764231.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to