So the real problem is, after the app starts I have like 3 RestConfigurations (jetty, netty-http, restlet) and when i call:
List<RouteDefinition> routeDefs = xmlDef.asRouteDefinition(camelContext, getContext().getRestConfiguration()); It creates a route for each RestConfiguration, which is not what i want. I only want them running on the netty-http. Does it make sense to add this method to RestDefinition so that you can choose the RestConfiguration you want the route added to? public List<RouteDefinition> asRouteDefinition(CamelContext camelContext, RestConfiguration restConfig) { // sanity check this rest definition do not have duplicates validateUniquePaths(); List<RouteDefinition> answer = new ArrayList<RouteDefinition>(); addRouteDefinition(camelContext, answer, restConfig.getComponent()); return answer; } -- View this message in context: http://camel.465427.n5.nabble.com/Removing-and-reloading-Rests-XML-Definitions-dynamically-tp5783724p5783733.html Sent from the Camel - Users mailing list archive at Nabble.com.