Examples of startConfiguration()


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

            configurationData.setUseEnvironment(true);
            configurationData.setBundleContext(bundle.getBundleContext());

            configurationManager.loadConfiguration(configurationData);
            configurationManager.startConfiguration(configurationData.getId());

            deployedArtifact = configurationData.getId();

            LOGGER.info("Deployed WAB {} at {}", new Object[] {bundle, contextPath});
View Full Code Here

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

                Artifact configID = Artifact.create((String)iterator.next());
                if (!configurationManager.isLoaded(configID)) {
                    configurationManager.loadConfiguration(configID);
                }

                configurationManager.startConfiguration(configID);
            }
        } catch (DeploymentException e) {
            StringBuilder buf = new StringBuilder(256);
            Throwable cause = e;
            while (cause != null) {
View Full Code Here

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

        GBeanData mockBean1 = configurationData.addGBean("MyBean", TestGBean.getGBeanInfo());
        mockBean1.setAttribute("value", "1234");

        // load and start the configuration
        configurationManager.loadConfiguration(configurationData);
        configurationManager.startConfiguration(configurationId);

        // invoke GBean directly
        TestGBean testGBean = (TestGBean) kernel.getGBean("MyBean");
        assertEquals("1234", testGBean.getValue());
        assertEquals("1234", testGBean.fetchValue());
View Full Code Here

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

            //deploymentContext.close();
            kernel.invoke(storeName, "install", new Object[] {configurationData, installDir},
                    new String[] {ConfigurationData.class.getName(), File.class.getName() });

            configurationManager.loadConfiguration(configId);
            configurationManager.startConfiguration(configId);

        } catch (Exception e) {
            log.error("problem", e);
        }
        response.setRenderParameter("processAction", "viewDestinations");
View Full Code Here

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

                if (!configurationManager.isLoaded(configId)) {
                    configurationManager.loadConfiguration(configId);
                }
                if (!configurationManager.isRunning(configId)) {
                    org.apache.geronimo.kernel.config.LifecycleResults lcresult = configurationManager
                    .startConfiguration(configId);
                    addInfoMessage(actionRequest, getLocalizedString(actionRequest, "consolebase.infoMsg01")
                            + printResults(lcresult.getStarted()));
                }
View Full Code Here

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

                String artifactName = deploymentConfigs[i];
                org.apache.geronimo.kernel.repository.Artifact configName =
                        org.apache.geronimo.kernel.repository.Artifact.create(artifactName);
                if (!configurationManager.isLoaded(configName)) {
                    configurationManager.loadConfiguration(configName);
                    configurationManager.startConfiguration(configName);
                }
            }
        } finally {
            ConfigurationUtil.releaseConfigurationManager(kernel, configurationManager);
        }
View Full Code Here

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

                    } catch (LifecycleException e) {
                        log.error("Could not load deployer configuration: " + configName + "\n" + monitor.toString(), e);
                    }
                    monitor = new RecordingLifecycleMonitor();
                    try {
                        configurationManager.startConfiguration(configName, monitor);
                        log.info("Started deployer: " + configName);
                    } catch (LifecycleException e) {
                        log.error("Could not start deployer configuration: " + configName + "\n" + monitor.toString(), e);
                    }
                }
View Full Code Here

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

                            unloadedConfigs.remove(configID);
                            monitor.moduleLoaded(configID);
                            try {
                                monitor.moduleStarting(configID);
                                if (!noNeedStartConfigList.contains(configID)) {
                                    configurationManager.startConfiguration(configID, lifecycleMonitor);
                                }
                                monitor.moduleStarted(configID);
                            } catch (Exception e) {
                                if ( configModuleType != ConfigurationModuleType.SERVICE.getValue() ) {
                                    log.warn("Failed to start module " + configID + "; Cause by " + e.getCause());
View Full Code Here

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

                    } catch (LifecycleException e) {
                        getLog().error("Could not load deployer configuration: " + configName + "\n" + monitor.toString(), e);
                    }
                    monitor = new RecordingLifecycleMonitor();
                    try {
                        configurationManager.startConfiguration(configName, monitor);
                        getLog().info("Started deployer: " + configName);
                    } catch (LifecycleException e) {
                        getLog().error("Could not start deployer configuration: " + configName + "\n" + monitor.toString(), e);
                    }
                }
View Full Code Here

Examples of org.apache.geronimo.kernel.config.EditableConfigurationManager.startConfiguration()

        ds2Binding.setAttribute("abstractNameQuery", new AbstractNameQuery(null,
                Collections.singletonMap("name", "ds2"),
                DataSource.class.getName()));

        configurationManager.loadConfiguration(configurationData);
        configurationManager.startConfiguration(configurationData.getId());

        DataSource ds1 = (DataSource) kernel.getGBean(ds1Name);
        DataSource ds2 = (DataSource) kernel.getGBean(ds2Name);

        // global bindings
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.