Re: How to properly remove a routeConfiguration

2023-10-07 Thread ski n
Yes, I think it's also present in Camel 3: https://www.javadoc.io/static/org.apache.camel/camel-core-model/3.20.7/org/apache/camel/model/Model.html There you have: removeRouteConfiguration Didn't found as the removeRoute is on the CamelContext, but removeConfiguration only on the CamelModelCont

Re: How to properly remove a routeConfiguration

2023-10-07 Thread Claus Ibsen
Hi You are using Camel 3 but there is API on Camel 4 (maybe also in 3 but I dont bother to check). Where you can remove via the model (def class). So you need to remove that way. On Tue, Oct 3, 2023 at 9:34 PM ski n wrote: > I have a route and a routeConfiguration. I want to remove both from

How to properly remove a routeConfiguration

2023-10-03 Thread ski n
I have a route and a routeConfiguration. I want to remove both from the CamelContext. I tried it like this: String routeId = route.getId(); String routeConfigurationId = route.getConfigurationId(); //remove route routeController.stopRoute(routeId, 30, TimeUnit.SECONDS); context.removeRoute(route