It seems For some reason RouteBuilder does not check the camelContext for
existing restConfiguration before it goes and creates it's own resulting in
multple restConfigurations.  

#RouteBuilder
public RestConfigurationDefinition restConfiguration(String component) {
        if (restConfigurations == null) {
            restConfigurations = new HashMap<String,
RestConfigurationDefinition>();
        }
        RestConfigurationDefinition restConfiguration =
restConfigurations.get(component);
        if (restConfiguration == null) {
            restConfiguration = new RestConfigurationDefinition();
            if (!component.isEmpty()) {
                restConfiguration.component(component);
            }
            restConfigurations.put(component, restConfiguration);
        }
        return restConfiguration;
    }


Is this how it's supposed to be?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Removing-and-reloading-Rests-XML-Definitions-dynamically-tp5783724p5783732.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to