H

In the XML configuration, it appears putting the id="myRoute" is easily set
as my camelcontext id when the application starts.
Trying to do the same with Javaconfig by overriding this below method from
CamelConfiguration, does not seem to update the context id- is there a
correct way to set the id?   Thanks

 @Override
    protected void setupCamelContext(CamelContext camelContext) throws
Exception {
         // enable performance metrics
        camelContext.addRoutePolicyFactory(getMetricsRoutePolicyFactory());
        ((SpringCamelContext)camelContext).setName("myRoute");
       
        super.setupCamelContext(camelContext);
    }



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-javaconfig-context-custom-id-tp5760992.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to