一般情况下,我们使用以下代码在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中实现?