Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 99CDA17858 for ; Thu, 29 Jan 2015 11:36:35 +0000 (UTC) Received: (qmail 31145 invoked by uid 500); 29 Jan 2015 11:36:36 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 31100 invoked by uid 500); 29 Jan 2015 11:36:36 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 31090 invoked by uid 99); 29 Jan 2015 11:36:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jan 2015 11:36:36 +0000 Date: Thu, 29 Jan 2015 11:36:36 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-8295) Change Camel Context Name on Camel Spring Boot MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-8295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14296726#comment-14296726 ] ASF GitHub Bot commented on CAMEL-8295: --------------------------------------- GitHub user eddi888 opened a pull request: https://github.com/apache/camel/pull/384 CAMEL-8295 Add Name for Camel Context in camel-spring-boot Configuration Properties. Its required to set the Camel Context Name before run the RouteBuilder. After the RouteBuilder ran, can't change the Camel Context Name fully in all JMX Management Beans. You can merge this pull request into a Git repository by running: $ git pull https://github.com/eddi888/camel master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/camel/pull/384.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #384 ---- commit f2fba4f1914191fb7be30365c78e4a017780d2f6 Author: eddi888 Date: 2015-01-29T11:33:15Z CAMEL-8295 Add Name for Camel Context in camel-spring-boot Configuration Properties. Its required to set the Camel Context Name before run the RouteBuilder. After the RouteBuilder ran, can't change the Camel Context Name fully in all JMX Management Beans. ---- > 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 > > 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)