You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2015/01/29 13:19:37 UTC
[jira] [Assigned] (CAMEL-8295) Change Camel Context Name on Camel
Spring Boot
[ https://issues.apache.org/jira/browse/CAMEL-8295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang reassigned CAMEL-8295:
-----------------------------------
Assignee: Willem Jiang
> 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)