[ 
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 <edgar.wentzl...@gmx.net>
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)

Reply via email to