Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.15.0
-
None
-
None
-
camel-spring-boot
-
Unknown
Description
Cant change the Camel Context Name fully, if the RouteBuilder ran already.
This Code is not working for the JMX MBeans
MyAppConfig.java
@Configuration public class MyAppConfig { ... @Bean CamelContextConfiguration contextConfiguration() { return new CamelContextConfiguration() { @Override public void beforeApplicationStart(CamelContext context) { ((SpringCamelContext)context).setName("foo"); } }; } }
The JMX MBeans are not updated after the RouteBuilde ran:
The Context Name Changed, but the JMX Object Name not.
"foo" != "camel-1"