Package org.apache.geronimo.kernel.config

Examples of org.apache.geronimo.kernel.config.ConfigurationManager.loadRecursive()


        kernel.startRecursiveGBean(config.getName());

        // load and start the configurations
        for (Iterator i = configurations.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);
            }
        }
View Full Code Here


            // load the rest of the configuration listed on the command line
            try {
                for (Iterator i = configs.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);
                    }
                }
View Full Code Here

        if (kernel != null && parentID != null) {
            ConfigurationManager configurationManager = kernel.getConfigurationManager();
            ObjectName parentName = configurationManager.getConfigObjectName(parentID);
            config.setReferencePatterns("Parent", Collections.singleton(parentName));
            try {
                ancestors = configurationManager.loadRecursive(parentID);
            } catch (Exception e) {
                throw new DeploymentException("Unable to load parents", e);
            }

            for (Iterator i = ancestors.iterator(); i.hasNext();) {
View Full Code Here

        kernel.startRecursiveGBean(configName);

        // load the rest of the configuration listed on the command line
        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

                    updateStatus("Uninstalled "+configID);

                    doDeploy(module.getTarget(), false);
                    updateStatus("Deployed "+configID);

                    List list = configurationManager.loadRecursive(configID);
                    for (int j = 0; j < list.size(); j++) {
                        URI name = (URI) list.get(j);
                        configurationManager.loadGBeans(name);
                        configurationManager.start(name);
                        updateStatus("Started " + name);
View Full Code Here

                        // That means that the configuration may have been distributed but has not yet been loaded.
                        // That's fine, we'll load it next.
                    }

                    // Load and start the module
                    List list = configurationManager.loadRecursive(moduleID);
                    for (int j = 0; j < list.size(); j++) {
                        URI name = (URI) list.get(j);
                        configurationManager.loadGBeans(name);
                        configurationManager.start(name);
                        String configName = name.toString();
View Full Code Here

            ConfigurationManager configurationManager = ConfigurationUtil.getConfigurationManager(kernel);
            try {
                for (int i = 0; i < deploymentConfig.length; i++) {
                    URI configName = deploymentConfig[i];
                    if (!configurationManager.isLoaded(configName)) {
                        List configs = configurationManager.loadRecursive(configName);
                        for (Iterator iterator = configs.iterator(); iterator.hasNext(); ) {
                            URI ancestorConfigName = (URI) iterator.next();
                            try {
                                configurationManager.loadGBeans(ancestorConfigName);
                            } catch (Throwable e) {
View Full Code Here

                ConfigurationManager configurationManager = ConfigurationUtil.getConfigurationManager(kernel);
                try {
                    for (Iterator i = configs.iterator(); i.hasNext();) {
                        URI configID = (URI) i.next();
                        monitor.configurationLoading(configID);
                        List list = configurationManager.loadRecursive(configID);
                        monitor.configurationLoaded(configID);
                        monitor.configurationStarting(configID);
                        for (Iterator iterator = list.iterator(); iterator.hasNext();) {
                            URI name = (URI) iterator.next();
                            configurationManager.loadGBeans(name);
View Full Code Here

        // load and start the configurations
        ConfigurationManager configurationManager = ConfigurationUtil.getConfigurationManager(kernel);
        try {
            for (Iterator i = configurations.iterator(); i.hasNext();) {
                URI configID = (URI) i.next();
                List list = configurationManager.loadRecursive(configID);
                for (Iterator iterator = list.iterator(); iterator.hasNext();) {
                    URI name = (URI) iterator.next();
                    configurationManager.loadGBeans(name);
                    configurationManager.start(name);
                }
View Full Code Here

        // load the rest of the configuration listed on the command line
        ConfigurationManager configurationManager = ConfigurationUtil.getConfigurationManager(kernel);
        try {
            for (Iterator i = configList.iterator(); i.hasNext();) {
                URI configID = (URI) i.next();
                List list = configurationManager.loadRecursive(configID);
                for (Iterator iterator = list.iterator(); iterator.hasNext();) {
                    URI name = (URI) iterator.next();
                    configurationManager.loadGBeans(name);
                    configurationManager.start(name);
                    System.out.println("started gbean: " + 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.