0 Replies Latest reply on Jul 2, 2012 2:42 AM by SMS JBOSS

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

    SMS JBOSS Newbie

      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>");

      HashMap<String, String[]> env = new HashMap<String, String[]>();

      env.put(JMXConnector.CREDENTIALS, new String[]{"userid from mgmt-user.properties", "pwd from mgmt-user.properties"});

      JMXConnector jmxConnector = JMXConnectorFactory.connect(serviceURL, env);

      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 ?