3 Replies Latest reply on Dec 10, 2003 1:01 PM by andrewboyd

    jmx-console question

    chadlavy

      I have created an MBean and it works perfectly from the jmx-console. My question concerns the jmx-console's display of my Bean's methods. For a method with four arguments, the console displays the parameters as arg0, arg1, arg2, arg3. Is there any way to get the console to display more meaningful names?

      Thanks for your help.

        • 1. Re: jmx-console question
          lekkim

          You will need to make your MBean an XMBean for this to happen. This will also allow you to give more meaningful descriptions for your methods.

          There is some information on XMBeans in the pay-for documentation, but basically you need to write an additional deployment descriptor and reference it from the jboss-service.xml (there is no additional code you need to write).

          Making it an XMBean also allows for the MBean to emmit notifications.

          lekkim

          • 2. Re: jmx-console question
            chadlavy

            Thanks, we have the for-pay docs so I'll dig it up.

            • 3.
              andrewboyd

              You can also use XDoclet to generate the xml discriptor for you.
              Thats what we did. Its not perfect but it saves some hand coding.