Can anybody post the working code to access via HTTP the JMX beans using Spring client classes ?
All examples that I could find were for access using RMI.
Thank you.
Printable View
Can anybody post the working code to access via HTTP the JMX beans using Spring client classes ?
All examples that I could find were for access using RMI.
Thank you.
RMI is the only protocol that JMX implementations are required to support. JMXMP is another protocol called out specifically in the JMX specification for remote connectors. If you want to go with HTTP, you will have to look at one of the (currently) non-standard approaches:
- HTMLAdaptor (OpenDMK)
- JMX Web Services Connector
- Other Connector or adaptor/adapter with HTTP support, such as MX4J, GlassFish, etc.
- Write a servlet or other HTTP-facing server implementation (or better yet, use Spring's HTTP exposure) that interacts with your MBean server. This is not as "direct" as using an HTTP connector or adaptor.
Other references that you may find of use include JMX - What Protocol Connectors are Readily Available for Use with JConsole, Remote JMX: Connectors and Adaptors, and A Third Look at JMX Web Services Connector.
Thank you for comprehensive reference list. I will definitely look at them.
I was asking for working example so I could specify the required configuration and other parameters.
If you have one working w/ any of available adapters, please let me know.