-
Feature Request
-
Resolution: Done
-
Major
-
1.4.0
-
None
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().