Camel
  1. Camel
  2. CAMEL-3906

Consumer and Producer names in JMX

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.0.0, Future
    • Component/s: camel-core
    • Labels:
      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(")");

      ...

        Activity

        Claus Ibsen made changes -
        Fix Version/s 3.0.0 [ 12315691 ]
        Fix Version/s Future [ 12315692 ]
        Fix Version/s 2.10.0 [ 12317612 ]
        Ben O'Day made changes -
        Assignee Ben O'Day [ boday ]
        Claus Ibsen made changes -
        Fix Version/s 2.10 [ 12317612 ]
        Fix Version/s 2.9.0 [ 12316374 ]
        Claus Ibsen made changes -
        Fix Version/s 2.9.0 [ 12316374 ]
        Fix Version/s 2.8.0 [ 12316226 ]
        Ben O'Day made changes -
        Attachment CAMEL-3906.patch [ 12478614 ]
        Ben O'Day made changes -
        Field Original Value New Value
        Assignee Ben O'Day [ boday ]
        Mitko Kolev created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Mitko Kolev
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development