Uploaded image for project: 'Byteman'
  1. Byteman
  2. BYTEMAN-130

JMX Helper in samples lib should enable installation of JMX Connector Server for remote MBean access

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 1.4.1
    • 1.4.0
    • Samples
    • None

    Description

      The JMXHelper in the samples tree creates an MBeanServer where needed. However, the application into which it is embedded may not always provide a way for that MBean to be expose its statistics. It would be useful if JMXHelper supported the ability to install a JMXConnectorServer at activation which exposed the MBeanServer data via an RMI socket. The server should be shut down when JMXHelper is deactivated.

      Ideally, JMXHelper should provide this as an option which can be configured from Byteman rules. Installation should de disabled by default. It should be possible to be switch it on by injecting action RETURN TRUE into private method JMXHelper.isRmiRequired(). The host and port should default to localhost and 9999. It should be possible to be configure the host name to, say, "foo" by injecting action RETURN "foo" into private method JMXHelper.rmiHost(). Similarly, it should be possible to be configure the port to, say, 1234 by injecting action RETURN 1234 into private method JMXHelper.rmiPort().

      Attachments

        Activity

          People

            rhn-engineering-adinn Andrew Dinn
            rhn-engineering-adinn Andrew Dinn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: