Search code examples
soapwebspherejmx

What protocol provider to connect to JMX on WebSphere via SOAP?


I'd like to connect to the JMX server on a WebSphere application server instance using a SOAP over HTTP connector but I don't know where to find a compatible SOAP protocol provider.

I get a MalformedURLException when using a JMXServiceURL starting service:jmx:soap:... that says Unsupported protocol: soap. What jar(s)/protocol provider string do I need to include?


Update: I am playing with a standalone Java client.


Solution

  • Unfortunately, IBM only provides a proprietary API to connect with SOAP over HTTP. They don't provide an implementation of the standard JMX API for that protocol. I faced the same issue and I developed such a connector (which is basically a thin JMX compliant wrapper around IBM's proprietary API), which is now available as Open Source. You can find more information here:

    https://github.com/kszbcss/xm4was/wiki/JmxClientConnector

    The following document describes how to set up a standard JMX tool (VisualVM) to use that connector:

    https://github.com/kszbcss/xm4was/wiki/VisualVMHowTo

    As you can see from these documents, after adding the relevant JARs to the class path and setting the necessary system properties, you would simply connect using wssoap as protocol.