camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mitko.ko...@icw.de
Subject Consumer and Producer names in JMX
Date Wed, 27 Apr 2011 14:11:05 GMT
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  
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message