1 Reply Latest reply on Jun 5, 2012 10:54 AM by jaikiran pai

    remoting-jmx????????????

    sarahfr Newbie

      hi,

      I deployed my application under jboss 7.1 but I have a problem with  remoting-jmx

       

      private static javax.management.MBeanServerConnection  repository=null;

       

      private static void init() throws IOException

                {

                          try

                          {

                                    final ConnectorFactory factory = new ConnectorFactory(CartSettings.getInstance());

                                    try

                                    {

                                              final ConnectorJMXIdentification jmxIdentification = factory.createConnectorJMXIdentification();

                                              jmxIdentification.verifyJMXIdentification();

       

                                    } catch (ConnectorFactoryException e) {

                                              e.printStackTrace();

                                    }

       

                            String host = "localhost";

                            int port = 9999;  // management-native port

                            String urlString =

                                System.getProperty("jmx.service.url","service:jmx:remoting-jmx://" + host + ":" + port);

                            JMXServiceURL serviceURL = new JMXServiceURL(urlString);

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

                            repository = jmxConnector.getMBeanServerConnection();

                   

                            //Invoke on the JBoss AS MBean server

                       

                                  serverName = new javax.management.ObjectName("cic:type=CICObjectShare");

       

                                    final String tmp = CartSettings.getInstance().getProperty("sharedObjectsTimeout", "0");

                                    final int sharedObjectsTimeout = cic.CICTools.parseInt(tmp);

                                    if (sharedObjectsTimeout>0)

                                              cic.CICObjectShare.TIMEOUT = sharedObjectsTimeout;

       

                          } catch (MalformedObjectNameException e) {

                                    e.printStackTrace();

                          } catch (NullPointerException e) {

                                    e.printStackTrace();

                          }

                }

       

      I have this error:

       

      17:01:11,345 ERROR [stderr] (http--127.0.0.1-8180-1) java.net.MalformedURLException: Unsupported protocol: remoting-jmx

       

      I need your help thanks