Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-2597

JMX Console resequences mbeans based on keys

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Minor
    • None
    • None
    • JMX
    • None

    Description

      I would like to display mbeans hierarchically within JMX Console. I have an existing mbean with an object name of "jboss.cache:service=ClusterTreeCache". I've added a hierarchically related mbean and have named it "jboss.cache:service=ClusterTreeCache, interceptor=ReplicationInterceptor". These mbeans display properly (i.e., hierarchically) in Sun's jconsole utility. But when I display the same mbeans in JMX Console, the second one is displayed using the name "jboss.cache: interceptor=ReplicationInterceptor, service=ClusterTreeCache". The hierarchy is based upon the service name, not the interceptor name so the display is incorrect. This is particularly a problem when you have multiple cache mbeans each having multiple interceptors.

      Upon investigation, it appears that JMX Console is resequencing the object name by sorting on keys in the name (e.g., "interceptor" comes before "service"). This resequencing of the object name makes it difficult to display mbeans hierarchically. A workaround is to name the keys so that they'll be sorted in the desired manner (e.g., use xinterceptor instead of interceptor).

      It seems that object names shouldn't be modified when displayed in JMX Console. If I name an mbean jboss.cache:keyb=nnn,keya=nnn), it should be displayed in this manner.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jerrygauth Jerry Gauthier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: