Package com.sun.sgs.system

Examples of com.sun.sgs.system.SubstitutionProperties


            logger.log(Level.SEVERE, "Invalid number of arguments");
            throw new IllegalArgumentException("Invalid number of arguments");
        }
       
        //load properties from configuration file
        SubstitutionProperties properties = null;
        if (args.length == 0) {
            properties = BootEnvironment.loadProperties(null);
        } else {
            properties = BootEnvironment.loadProperties(args[0]);
        }

        // get the JMX port and make the connection
        String port = properties.getProperty(BootEnvironment.JMX_PORT,
                                             BootEnvironment.DEFAULT_JMX_PORT);
        JMXServiceURL url =
            new JMXServiceURL("service:jmx:rmi:///jndi/rmi://localhost:" +
                              port + "/jmxrmi");
        JMXConnector jmxc = JMXConnectorFactory.connect(url, null);
View Full Code Here

TOP

Related Classes of com.sun.sgs.system.SubstitutionProperties

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.