Package org.apache.geronimo.kernel.config

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


                    TargetModuleIDImpl module = (TargetModuleIDImpl) modules[i];

                    URI moduleID = URI.create(module.getModuleID());
                    try {
                        try {
                            configurationManager.stop(moduleID);
                        } catch (InvalidConfigException e) {
                            if(e.getCause() instanceof GBeanNotFoundException) {
                                GBeanNotFoundException gnf = (GBeanNotFoundException) e.getCause();
                                if(clean(gnf.getGBeanName().getKeyProperty("name")).equals(moduleID.toString())) {
                                    // the module is not running
View Full Code Here


            try {
                for (int i = 0; i < modules.length; i++) {
                    TargetModuleID module = modules[i];
                    URI moduleID = URI.create(module.getModuleID());
                    try {
                        configurationManager.stop(moduleID);
                    } catch (InvalidConfigException e) {
                        updateStatus("Module "+moduleID+" is not running.");
                        continue;
                    }
                    configurationManager.unload(moduleID);
View Full Code Here

                    configurationManager.loadGBeans(uri);
                    configurationManager.start(uri);
                }
                messageStatus = "Started application<br /><br />";
            } else if (STOP_ACTION.equals(action)) {
                configurationManager.stop(configID);
                configurationManager.unload(configID);
                messageStatus = "Stopped application<br /><br />";
            } else if (UNINSTALL_ACTION.equals(action)) {
                uninstallConfig(actionRequest);
                messageStatus = "Uninstalled application<br /><br />";
View Full Code Here

                // stop config if running
                if (configManager.isLoaded(configURI)) {
                    int state = kernel.getGBeanState(Configuration.getConfigurationObjectName(configURI));
                    if (state == State.RUNNING.toInt()) {

                        configManager.stop(configURI);
                        configManager.unload(configURI);
                    }
                }
                kernel.invoke(configStore, UNINSTALL_METHOD, new Object[]{configURI}, UNINSTALL_SIG);
            }
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.