[ 
https://issues.apache.org/jira/browse/CAMEL-8295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Willem Jiang resolved CAMEL-8295.
---------------------------------
    Resolution: Fixed

Applied the patch into camel master branch with thanks to Edgar.

> 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
>            Assignee: Willem Jiang
>             Fix For: 2.15.0
>
>         Attachments: context_name.png
>
>
> 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)

Reply via email to