Package org.apache.geronimo.kernel.config

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


        kernel.loadGBean(configurationManagerData, getClass().getClassLoader());
        kernel.startGBean(configurationManagerName);
        ConfigurationManager configurationManager = (ConfigurationManager) kernel.getProxyManager().createProxy(configurationManagerName, ConfigurationManager.class);

        configurationManager.load((URI) parentId.get(0));
        configurationManager.loadGBeans((URI) parentId.get(0));
        configurationManager.start((URI) parentId.get(0));

        serverInfoName = new ObjectName("geronimo.system:name=ServerInfo");
        serverInfoGBean = new GBeanData(serverInfoName, BasicServerInfo.GBEAN_INFO);
        serverInfoGBean.setAttribute("baseDirectory", ".");
View Full Code Here


                    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);
                    }
                }
            } finally {
View Full Code Here

                    // 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();
                        List kids = loadChildren(kernel, configName);
                        TargetModuleIDImpl id = new TargetModuleIDImpl(modules[i].getTarget(), configName,
                                (String[]) kids.toArray(new String[kids.size()]));
View Full Code Here

                    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) {
                                throw new RuntimeException("Could not start configuration: " + configName, e);
                            }
                        }
                        configurationManager.start(configName);
View Full Code Here

                        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);
                            configurationManager.start(name);
                        }
                        monitor.configurationStarted(configID);
                    }
                } finally {
View Full Code Here

            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);
                }
            }
        } finally {
            ConfigurationUtil.releaseConfigurationManager(kernel, configurationManager);
View Full Code Here

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

            configurationManager.load(configId);
            configurationManager.loadGBeans(configId);
            configurationManager.start(configId);

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

                for (Iterator iterator = list.iterator(); iterator.hasNext();) {
                    URI configID = URI.create((String)iterator.next());
                    if (!configurationManager.isLoaded(configID)) {
                        configurationManager.load(configID);
                    }
                    configurationManager.loadGBeans(configID);
                    configurationManager.start(configID);
                }
            }
        } catch (DeploymentException e) {
            e.printStackTrace();
View Full Code Here

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

                configurationManager.loadGBeans(configID);
                configurationManager.start(configID);
            }
        } catch (DeploymentException e) {
            StringBuffer buf = new StringBuffer(256);
            Throwable cause = e;
View Full Code Here

            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);
                }
            }
        } finally {
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.