2 Replies Latest reply on Jul 27, 2015 10:41 AM by Wolfgang Mayer

    I need to get the mbean attribute values that are present in the jboss programatically

    Arun T Newbie

      public class JMXExample {  

          public static void main(String[] args) throws Exception { 

              String host = "localhost"; 

              int port = 9999;  


              String urlString ="service:jmx:remoting-jmx://" + host + ":" + port; 

              System.out.println("\n\n\t****  urlString: "+urlString);

              JMXServiceURL serviceURL = new JMXServiceURL(urlString); 

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





      // Getting RunTime Exception . Please Help


      ****  urlString: service:jmx:remoting-jmx://localhost:9999

      Jul 27, 2015 12:07:16 PM org.xnio.Xnio <clinit>

      INFO: XNIO Version 3.0.7.GA-redhat-1

      Jul 27, 2015 12:07:16 PM org.xnio.nio.NioXnio <clinit>

      INFO: XNIO NIO Implementation Version 3.0.7.GA-redhat-1

      Jul 27, 2015 12:07:16 PM org.jboss.remoting3.EndpointImpl <clinit>

      INFO: JBoss Remoting version 3.2.16.GA-redhat-1

      Exception in thread "main" java.lang.RuntimeException: Operation failed with status WAITING

      at org.jboss.remotingjmx.RemotingConnector.internalRemotingConnect(RemotingConnector.java:216)
      at org.jboss.remotingjmx.RemotingConnector.internalConnect(RemotingConnector.java:143)
      at org.jboss.remotingjmx.RemotingConnector.connect(RemotingConnector.java:94)
      at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)