Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-3906

Consumer and Producer names in JMX

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Abandoned
    • None
    • 3.0.0, Future
    • camel-core
    • None

    Description

      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(")");

      ...

      Attachments

        1. CAMEL-3906.patch
          5 kB
          Benjamin P. O'Day

        Activity

          People

            Unassigned Unassigned
            mkolev Mit Ko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: