Reputation: 67
In General, we use the following code to invoke a MBean in JBOSS AS 7.1.1,
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);
We have a requirement wherein we need to invoke a remote MBean using http/https protocol. Is there a way to do it in JBOSS AS 7.1.1 ?
Upvotes: 0
Views: 1348