[
https://issues.apache.org/jira/browse/CAMEL-9903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15254049#comment-15254049
]
ASF GitHub Bot commented on CAMEL-9903:
---------------------------------------
GitHub user guillaumeterral opened a pull request:
https://github.com/apache/camel/pull/956
CAMEL-9903 Fix jmx operations when jmx domain is custom + test
I retrieve the jmx domain from the management agent where it has been
customized using JVM property or ManagementAgent bean according to
http://camel.apache.org/camel-jmx.html
This domain is then used in all the calls made to retrieve statistics
Unit Test has been added to test those operations with a custom jmx domain
name
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/guillaumeterral/camel CAMEL-9903
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/956.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 #956
----
commit c77eafe539be8b05ab1b5fe1c7ce7fb44a7ad754
Author: Guillaume Terral <[email protected]>
Date: 2016-04-22T14:35:28Z
CAMEL-9903 Fix jmx operations when jmx domain is custom + test
----
> DumpRouteStatsAsXml do not work when jmx domain is customized
> -------------------------------------------------------------
>
> Key: CAMEL-9903
> URL: https://issues.apache.org/jira/browse/CAMEL-9903
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.17.0
> Reporter: Terral Guillaume
> Fix For: 2.17.1, 2.18.0
>
>
> According to the documentation
> ([Here|http://camel.apache.org/camel-jmx.html]) we can customize the jmx
> domain name.
> When the domain name is different from org.apache.camel all the
> dumpRouteStatsAsXml are empty and does not work anymore.
> After some investigation it is because the MBean operation does not take into
> account the runtime domain name and only use "org.apache.camel"
> ([here|https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/management/mbean/ManagedCamelContext.java#L489])
>
> I've done a unit test to reproduce and tried to do a fix,
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)