Package org.apache.geronimo.kernel.config

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


    }

    private void undeploy(Artifact artifact) {
        ConfigurationManager configurationManager = extender.getConfigurationManager();
        try {
            configurationManager.uninstallConfiguration(artifact);
        } catch (IOException e) {
            e.printStackTrace();
        } catch (NoSuchConfigException e) {
            // ignore
        } catch (LifecycleException e) {
View Full Code Here


        DownloadResults downloadResults = new DownloadResults();
        try {
            ConfigurationManager configurationManager = jpaNodeInfo.getConfigurationManager();
            for (JpaPluginInstance jpaPluginInstance: pluginList) {
                Artifact artifact = jpaPluginInstance.toArtifact();
                configurationManager.uninstallConfiguration(artifact);
                downloadResults.addRemovedConfigID(artifact);
            }
        } catch (IOException e) {
            downloadResults.setFailure(e);
        } catch (NoSuchConfigException e) {
View Full Code Here

                    addInfoMessage(actionRequest, getLocalizedString(actionRequest, "consolebase.infoMsg02") + printResults(lcresult.getStopped()));
                }

            } else if (UNINSTALL_ACTION.equals(action)) {

                configurationManager.uninstallConfiguration(configId);

                addInfoMessage(actionRequest, getLocalizedString(actionRequest, "consolebase.infoMsg04") + "<br />" + configId);

            } else if (RESTART_ACTION.equals(action)) {
View Full Code Here

    }

    private void undeploy(Artifact artifact) {
        ConfigurationManager configurationManager = extender.getConfigurationManager();
        try {
            configurationManager.uninstallConfiguration(artifact);
        } catch (IOException e) {
            e.printStackTrace();
        } catch (NoSuchConfigException e) {
            // ignore
        } catch (LifecycleException e) {
View Full Code Here

                    addInfoMessage(actionRequest, getLocalizedString(actionRequest, "consolebase.infoMsg02") + printResults(lcresult.getStopped()));
                }

            } else if (UNINSTALL_ACTION.equals(action)) {

                configurationManager.uninstallConfiguration(configId);

                addInfoMessage(actionRequest, getLocalizedString(actionRequest, "consolebase.infoMsg04") + "<br />" + configId);

            } else if (RESTART_ACTION.equals(action)) {
View Full Code Here

                    LifecycleResults lcresult = configurationManager.unloadConfiguration(configId);
                    messageStatus = "Stopped application<br /><br />";
                    this.printResults(lcresult.getUnloaded(), action);
                }
            } else if (UNINSTALL_ACTION.equals(action)) {
                configurationManager.uninstallConfiguration(configId);
                messageStatus = "Uninstalled application<br /><br />"+configId+"<br /><br />";               
            } else if (RESTART_ACTION.equals(action)) {
                LifecycleResults lcresult = configurationManager.restartConfiguration(configId);
                messageStatus = "Restarted application<br /><br />";
                this.printResults(lcresult.getStarted(), START_ACTION);
View Full Code Here

                    } catch (NoSuchConfigException e) {
                        // module was already unloaded - just continue
                    }

                    try {
                        configurationManager.uninstallConfiguration(moduleID);
                        updateStatus("Module " + moduleID + " uninstalled.");
                        addModule(module);
                    } catch (NoSuchConfigException e) {
                        // module was already undeployed - just continue
                    }
View Full Code Here

                    LifecycleResults lcresult = configurationManager.unloadConfiguration(configId);
                    messageStatus = "Stopped application<br /><br />";
                    this.printResults(lcresult.getUnloaded(), action);
                }
            } else if (UNINSTALL_ACTION.equals(action)) {
                configurationManager.uninstallConfiguration(configId);
                messageStatus = "Uninstalled application<br /><br />"+configId+"<br /><br />";               
            } else if (RESTART_ACTION.equals(action)) {
                LifecycleResults lcresult = configurationManager.restartConfiguration(configId);
                messageStatus = "Restarted application<br /><br />";
                this.printResults(lcresult.getStarted(), START_ACTION);
View Full Code Here

                    } catch (NoSuchConfigException e) {
                        // module was already unloaded - just continue
                    }

                    try {
                        configurationManager.uninstallConfiguration(moduleID);
                        updateStatus("Module " + moduleID + " uninstalled.");
                        addModule(module);
                    } catch (NoSuchConfigException e) {
                        // module was already undeployed - just continue
                    }
View Full Code Here

                if(configurationManager.isLoaded(configId)) {
                    configurationManager.unloadConfiguration(configId);
                    messageStatus = "Stopped application<br /><br />";
                }
            } else if (UNINSTALL_ACTION.equals(action)) {
                configurationManager.uninstallConfiguration(configId);
                messageStatus = "Uninstalled application<br /><br />";
            } else if (RESTART_ACTION.equals(action)) {
                configurationManager.restartConfiguration(configId);
                messageStatus = "Restarted application<br /><br />";
            } else {
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.