一般来说,我们使用以下代码在 JBOSS AS 7.1.1 中调用 MBean,
JMXServiceURL serviceURL = new JMXServiceURL("service:jmx:remoting-jmx://(bind address to invoke):(default bind port is 9999)");
JMXConnector jmxConnector = JMXConnectorFactory.connect(serviceURL, null);
MBeanServerConnection connection = jmxConnector.getMBeanServerConnection();
ObjectName mbeanObject = new ObjectName(mBeanName);
connection.invoke(mbeanObject, methodToInvoke, params, signature);
我们有一个需求,我们需要使用 http/https 协议调用远程 MBean。有没有办法在 JBOSS AS 7.1.1 中做到这一点?