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  

Reply via email to