Muthu
Muthu

Reputation: 67

Invoke a remote MBean in JBOSS AS 7.1.1 using http/https protocol

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

Answers (1)

helios
helios

Reputation: 2821

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.

Upvotes: 1

Related Questions