camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-8295) Change Camel Context Name on Camel Spring Boot
Date Thu, 29 Jan 2015 12:33:34 GMT

     [ 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)

Mime
View raw message