Examples of startRecursiveGBean()


Examples of org.apache.geronimo.kernel.Kernel.startRecursiveGBean()

        Kernel kernel = KernelFactory.newInstance().createKernel(getKernelName());
        kernel.boot();

        kernel.loadGBean(configuration, this.getClass().getClassLoader());
        kernel.setAttribute(configName, "baseURL", systemURL);
        kernel.startRecursiveGBean(configName);

        // load the rest of the configuration listed on the command line
        ConfigurationManager configurationManager = ConfigurationUtil.getConfigurationManager(kernel);
        for (Iterator i = configList.iterator(); i.hasNext();) {
            URI configID = (URI) i.next();
View Full Code Here

Examples of org.apache.geronimo.kernel.Kernel.startRecursiveGBean()

        for (Iterator i = configList.iterator(); i.hasNext();) {
            URI configID = (URI) i.next();
            List list = configurationManager.loadRecursive(configID);
            for (Iterator iterator = list.iterator(); iterator.hasNext();) {
                ObjectName name = (ObjectName) iterator.next();
                kernel.startRecursiveGBean(name);
                System.out.println("started gbean: " + name);
            }
        }

View Full Code Here

Examples of org.apache.geronimo.kernel.Kernel.startRecursiveGBean()

        ConfigurationManager configMgr = ConfigurationUtil.getConfigurationManager(kernel);
        if (!configMgr.isLoaded(deploymentConfig)) {
            List configs = configMgr.loadRecursive(deploymentConfig);
            for (int i = 0; i < configs.size(); i++) {
                ObjectName configName = (ObjectName) configs.get(i);
                kernel.startRecursiveGBean(configName);
            }
        }

        ObjectName deployer = locateDeployer(kernel);
        invokeDeployer(kernel, deployer);
View Full Code Here

Examples of org.apache.geronimo.kernel.Kernel.startRecursiveGBean()

            mbeanServerKernelBridge.setAttribute("mbeanServerId", mbeanServerId);
            kernel.loadGBean(mbeanServerKernelBridge, classLoader);
            kernel.startGBean(mbeanServerKernelBridgeName);

            // start this configuration
            kernel.startRecursiveGBean(configuration.getName());
            monitor.systemStarted(kernel);

            if (configs.isEmpty()) {
                // nothing explicit, see what was running before
                Set configLists = kernel.listGBeans(PERSISTENT_CONFIGURATION_LIST_NAME_QUERY);
View Full Code Here

Examples of org.apache.geronimo.kernel.Kernel.startRecursiveGBean()

                    List list = configurationManager.loadRecursive(configID);
                    monitor.configurationLoaded(configID);
                    monitor.configurationStarting(configID);
                    for (Iterator iterator = list.iterator(); iterator.hasNext();) {
                        ObjectName name = (ObjectName) iterator.next();
                         kernel.startRecursiveGBean(name);
                    }
                    monitor.configurationStarted(configID);
                }
            } catch (Exception e) {
                //Exception caught when starting configurations, starting kernel shutdown
View Full Code Here

Examples of org.apache.geronimo.kernel.Kernel.startRecursiveGBean()

            // load the configuration
            config.setAttribute("baseURL", unpackedDir.toURL());
            kernel.loadGBean(config, cl);

            // start the configuration
            kernel.startRecursiveGBean(objectName);
            Set gb = kernel.listGBeans(JMXUtil.getObjectName("test:*"));
            for (Iterator iterator = gb.iterator(); iterator.hasNext();) {
                ObjectName name = (ObjectName) iterator.next();
                if (State.RUNNING_INDEX != kernel.getGBeanState(name)) {
                    System.out.println("Not running: " + name);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.