Examples of onShutdown()


Examples of com.sun.appserv.server.ServerLifecycle.onShutdown()

        for (int i = services.size(); i > 0; i--) {
            final ServerLifecycle service = services.get(i-1);

      _logger.log(Level.FINE,"service.shutdown", services.get(i-1));
            try {
                service.onShutdown();
            } catch (Exception e) {
            //do nothing since we want to continue shutting down other LFC
            //modules
                    _logger.log(Level.WARNING, "server.exception", e);      
            }           
View Full Code Here

Examples of com.sun.ejb.Container.onShutdown()

                while (iter.hasNext()) {
                    Container container = (Container) iter.next();

                    if (container != null) {
                        container.onShutdown();
                    }
                }
            }
           
            // After the applicationmanager shutdown, call stop method
View Full Code Here

Examples of freenet.client.async.ClientRequester.onShutdown()

    /** Called just before the final write when the node is shutting down. Should write any dirty
     * data to disk etc. */
    public void onShutdown(ClientContext context) {
        ClientRequester request = getClientRequest();
        if(request != null)
            request.onShutdown(context);
    }
}
View Full Code Here

Examples of org.apache.servicemix.jbi.container.SpringJBIContainer.onShutDown()

            }
            context.setValidating(false);
            context.refresh();
           
            SpringJBIContainer container = (SpringJBIContainer) context.getBean("jbi");           
            container.onShutDown(new Runnable() {
                public void run() {
                    if (context instanceof DisposableBean) {
                        try {
                            ((DisposableBean) context).destroy();
                        } catch (Exception e) {
View Full Code Here

Examples of org.apache.servicemix.jbi.container.SpringJBIContainer.onShutDown()

    // This is a very simple example of how you might embed ServiceMix
    try {
      final ApplicationContext context = new ClassPathXmlApplicationContext("servicemix.xml");

      SpringJBIContainer container = (SpringJBIContainer) context.getBean("jbi");
            container.onShutDown(new Runnable() {
                public void run() {
                    if (context instanceof DisposableBean) {
                        try {
                            ((DisposableBean) context).destroy();
                        } catch (Exception e) {
View Full Code Here

Examples of org.apache.servicemix.jbi.container.SpringJBIContainer.onShutDown()

                processors.add(new ClassLoaderXmlPreprocessor(new FileSystemRepository(new File("."))));
                System.out.println("Loading Apache ServiceMix from file: " + file);
                context = new FileSystemXmlApplicationContext(file, processors);
            }
            SpringJBIContainer container = (SpringJBIContainer) context.getBean("jbi");
            container.onShutDown(new Runnable() {
                public void run() {
                    if (context instanceof DisposableBean) {
                        try {
                            ((DisposableBean) context).destroy();
                        } catch (Exception e) {
View Full Code Here

Examples of org.apache.servicemix.jbi.container.SpringJBIContainer.onShutDown()

                processors.add(new ClassLoaderXmlPreprocessor(new File(".")));
                System.out.println("Loading Apache ServiceMix from file: " + file);
                context = new FileSystemXmlApplicationContext(file, processors);
            }
            SpringJBIContainer container = (SpringJBIContainer) context.getBean("jbi");           
            container.onShutDown(new Runnable() {
                public void run() {
                    if (context instanceof DisposableBean) {
                        try {
                            ((DisposableBean) context).destroy();
                        } catch (Exception e) {
View Full Code Here

Examples of org.apache.servicemix.jbi.container.SpringJBIContainer.onShutDown()

                processors.add(new ClassLoaderXmlPreprocessor(new File(".")));
                System.out.println("Loading Apache ServiceMix from file: " + file);
                context = new FileSystemXmlApplicationContext(file, processors);
            }
            SpringJBIContainer container = (SpringJBIContainer) context.getBean("jbi");           
            container.onShutDown(new Runnable() {
                public void run() {
                    if (context instanceof DisposableBean) {
                        try {
                            ((DisposableBean) context).destroy();
                        } catch (Exception e) {
View Full Code Here

Examples of org.glassfish.jersey.server.spi.ContainerLifecycleListener.onShutdown()

    @Override
    public void destroy() {
        super.destroy();
        ContainerLifecycleListener listener = containerListener;
        if (listener != null) {
            listener.onShutdown(this);
        }
    }

    @Override
    public void init() throws ServletException {
View Full Code Here

Examples of org.glassfish.jersey.server.spi.ContainerLifecycleListener.onShutdown()

    @Override
    public void destroy() {
        super.destroy();
        ContainerLifecycleListener listener = containerListener;
        if (listener != null) {
            listener.onShutdown(this);
        }
    }

    @Override
    public void init() throws ServletException {
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.