You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Ben O'Day (Assigned) (JIRA)" <ji...@apache.org> on 2012/01/11 00:22:39 UTC
[jira] [Assigned] (CAMEL-3906) Consumer and Producer names in JMX
[ https://issues.apache.org/jira/browse/CAMEL-3906?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ben O'Day reassigned CAMEL-3906:
--------------------------------
Assignee: (was: Ben O'Day)
> Consumer and Producer names in JMX
> ----------------------------------
>
> Key: CAMEL-3906
> URL: https://issues.apache.org/jira/browse/CAMEL-3906
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Mitko Kolev
> Priority: Minor
> Fix For: 2.10
>
> Attachments: CAMEL-3906.patch
>
>
> Currently the consumer and producer names in JMX have a name based on their java instance [1]. Due to this it is not obvious what is the endpoint of the consumers/producers.
> It can be improved to use name in the JMX tree based on endpoint URI of the consumer/producer endpoints (combined with identityHashcode) to help in the overview to faster spot the desired consumer.
> [1] Copy/paste from the DefaultManagementNamingStrategy
> ...
> String name = consumer.getClass().getSimpleName();
> if (ObjectHelper.isEmpty(name)) {
> name = "Consumer";
> }
> buffer.append(KEY_NAME + "=")
> .append(name)
> .append("(").append(ObjectHelper.getIdentityHashCode(consumer)).append(")");
> ...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira