You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by srinivas_vsk <sr...@yahoo.com> on 2014/12/22 17:40:13 UTC

Camel javaconfig context custom id

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.