0

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 ?

Muthu
  • 67
  • 3
  • 9

1 Answers1

1

Check out Jolokia first. But if you really want to implement something custom, develop a servlet or web service and deploy it on the remote server that would act as a proxy to remote MBeans.

helios
  • 2,603
  • 4
  • 21
  • 26
  • Thanks for the reply. Sorry, I am seeing your response late. When there was no response for 2 -3 days, I left tracking this. We did went for WebService. – Muthu Aug 23 '12 at 13:12