Edgar Wentzlaff created CAMEL-8295:
--------------------------------------
Summary: Change Camel Context Name on Camel Spring Boot
Key: CAMEL-8295
URL: https://issues.apache.org/jira/browse/CAMEL-8295
Project: Camel
Issue Type: Bug
Affects Versions: 2.15.0
Environment: camel-spring-boot
Reporter: Edgar Wentzlaff
Fix For: 2.15.0
Cant change the Camel Context Name fully, if the RouteBuilder ran already.
This Code is not working for the JMX MBeans
{code:title=MyAppConfig.java|borderStyle=solid}
@Configuration
public class MyAppConfig {
...
@Bean
CamelContextConfiguration contextConfiguration() {
return new CamelContextConfiguration() {
@Override
public void beforeApplicationStart(CamelContext context) {
((SpringCamelContext)context).setName("foo");
}
};
}
}
{code}
The JMX MBeans are not updated after the RouteBuilde ran:
The Context Name Changed, but the JMX Object Name not.
"foo" != "camel-1"
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)