Examples of unloadGBean()


Examples of org.apache.geronimo.kernel.Kernel.unloadGBean()

               
                try {
                    Kernel kernel=PortletManager.getKernel();
                    ClassLoader oldCL=connector.getClass().getClassLoader();
                    kernel.stopGBean(connectorName);
                    kernel.unloadGBean(connectorName);
                   
                   
                    kernel.loadGBean(connectorGBeanData, oldCL);
                    kernel.startGBean(connectorName);
                 
View Full Code Here

Examples of org.apache.geronimo.kernel.Kernel.unloadGBean()

            } catch (GBeanNotFoundException e) {
            } catch (InternalKernelException e) {
            } catch (IllegalStateException e) {
            }
            try {
                kernel.unloadGBean(name);
            } catch (GBeanNotFoundException e) {
            } catch (InternalKernelException e) {
            } catch (IllegalStateException e) {
            }
            //TODO this code is more symmetrical with start, but currently sets the load attribute to false in config.xml,
View Full Code Here

Examples of org.apache.geronimo.kernel.Kernel.unloadGBean()

                try {
                    Kernel kernel = PortletManager.getKernel();
                    BundleContext bundleContext = kernel.getBundleFor(connectorName).getBundleContext();
                    kernel.stopGBean(connectorName);
                    kernel.unloadGBean(connectorName);
                    kernel.loadGBean(connectorGBeanData, bundleContext);
                    kernel.startGBean(connectorName);
                } catch (Exception e) {
                    log.error("Unable to reload updated connector:" + connectorName.toURI(), e);
                }
View Full Code Here

Examples of org.apache.geronimo.kernel.Kernel.unloadGBean()

            } catch (GBeanNotFoundException e) {
            } catch (InternalKernelException e) {
            } catch (IllegalStateException e) {
            }
            try {
                kernel.unloadGBean(name);
            } catch (GBeanNotFoundException e) {
            } catch (InternalKernelException e) {
            } catch (IllegalStateException e) {
            }
            //TODO this code is more symmetrical with start, but currently sets the load attribute to false in config.xml,
View Full Code Here

Examples of org.apache.geronimo.kernel.Kernel.unloadGBean()

                if (actionRequest.getServerPort() != toBeUpdatedConnectorPort.intValue()) {
                    try {
                        Kernel kernel = PortletManager.getKernel();
                        BundleContext bundleContext = kernel.getBundleFor(connectorName).getBundleContext();
                        kernel.stopGBean(connectorName);
                        kernel.unloadGBean(connectorName);
                        kernel.loadGBean(connectorGBeanData, bundleContext);
                        kernel.startGBean(connectorName);
                    } catch (Exception e) {
                        log.error("Unable to reload updated connector:" + connectorName.toURI(), e);
                        actionResponse.setRenderParameter("toBeUpdatedConnectorName", toBeUpdatedConnectorName);
View Full Code Here

Examples of org.apache.geronimo.kernel.Kernel.unloadGBean()

            } catch (GBeanNotFoundException e) {
            } catch (InternalKernelException e) {
            } catch (IllegalStateException e) {
            }
            try {
                kernel.unloadGBean(name);
            } catch (GBeanNotFoundException e) {
            } catch (InternalKernelException e) {
            } catch (IllegalStateException e) {
            }
            //TODO this code is more symmetrical with start, but currently sets the load attribute to false in config.xml,
View Full Code Here

Examples of org.apache.geronimo.kernel.Kernel.unloadGBean()

               
                try {
                    Kernel kernel = PortletManager.getKernel();
                    BundleContext bundleContext = kernel.getBundleFor(connector.getClass()).getBundleContext();
                    kernel.stopGBean(connectorName);
                    kernel.unloadGBean(connectorName);
                    kernel.loadGBean(connectorGBeanData, bundleContext);
                    kernel.startGBean(connectorName);
                } catch (Exception e) {
                    log.error("Unable to reload updated connector:" + connectorName.toURI(), e);
                }
View Full Code Here

Examples of org.apache.geronimo.kernel.Kernel.unloadGBean()

            } catch (/* IllegalArgument */Exception expected) {
            } finally {
                // @todo possible BUG: gmbean holds information on being online
                // although kernel is shutdown
                // explicit unloading GBean
                kernel.unloadGBean(name);
                kernel.shutdown();
            }
        }

        // 2. setValue throws Error
View Full Code Here

Examples of org.apache.geronimo.kernel.Kernel.unloadGBean()

                attribute.online();
                fail("Setter upon call with " + valueThatCausesError + " should have thrown error");
            } catch (Error expected) {
            } finally {
                // @todo possible BUG: see the above finally block
                kernel.unloadGBean(name);
                kernel.shutdown();
            }
        }

        // 3. setValue throws Throwable
View Full Code Here

Examples of org.apache.geronimo.kernel.Kernel.unloadGBean()

               
                try {
                    Kernel kernel=PortletManager.getKernel();
                    ClassLoader oldCL=connector.getClass().getClassLoader();
                    kernel.stopGBean(connectorName);
                    kernel.unloadGBean(connectorName);
                   
                   
                    kernel.loadGBean(connectorGBeanData, oldCL);
                    kernel.startGBean(connectorName);
                 
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.