They have an endpoint uri attribute.

On Wed, Apr 27, 2011 at 4:11 PM,  <mitko.ko...@icw.de> wrote:
> Hello Camel devs,
>
> 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.
>
> Would not it be better to use name based on endpoint URI of the
> consumer/producer endpoints (combined with identityHashcode) instead?
>
>
> [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(")");
>
> ...
>
> Regards,
> Mitko
>
>
>
>
> InterComponentWare AG:
> Vorstand: Peter Kirschbauer (Vors.), Jörg Stadler
> Aufsichtsratsvors.: Prof. Dr. Christof Hettich
> Firmensitz: 69190 Walldorf, Altrottstraße 31
> AG Mannheim HRB 351761 / USt.-IdNr.: DE 198388516



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
CamelOne 2011: http://fusesource.com/camelone2011/
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to