[
https://issues.apache.org/jira/browse/CAMEL-3906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16894645#comment-16894645
]
Claus Ibsen commented on CAMEL-3906:
------------------------------------
Closing old tickets
> 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: Mit Ko
> Priority: Minor
> Fix For: Future, 3.0.0
>
> 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 was sent by Atlassian JIRA
(v7.6.14#76016)