Package com.sun.enterprise.web

Examples of com.sun.enterprise.web.ConnectionShutdownUtil


    /**
     * get a list of the classes implementing ShutdownCleanupCapable
     */
    private ArrayList getShutdownCleanupCapablesList() {
         System.out.println("SHUTDOWN-about to gather shutdownCleanupCapables");
         ConnectionShutdownUtil shutdownUtil = new ConnectionShutdownUtil(_embedded);
         ArrayList shutdownCleanupCapablesList = new ArrayList();
         try {
            shutdownCleanupCapablesList = shutdownUtil.runGetShutdownCapables();
         } catch (Exception ex) {};
         return shutdownCleanupCapablesList;
    }
View Full Code Here


         } catch (Exception ex) {};
         return shutdownCleanupCapablesList;
    }

    private void doShutdownCleanup(ArrayList shutdownCleanupCapablesList) {
         ConnectionShutdownUtil shutdownUtil = new ConnectionShutdownUtil(_embedded);       
        //close all the connections in our connection pool
        shutdownUtil.clearoutJDBCPool();
       
        //finally get shutdownCleanupCapables to close other connections
        //must skip if HADB is not installed
        if(ServerConfigReader.isHADBInstalled()) {
            if(EEHADBHealthChecker.isOkToProceed() ) {
                System.out.println("SHUTDOWN-about to close connections");       
                shutdownUtil.runShutdownCleanupFromShutdownCleanupCapableList(shutdownCleanupCapablesList);
            } else {
                System.out.println("skipping SHUTDOWN to close connections: HADB non-operational");
            }
        }
    }   
View Full Code Here

TOP

Related Classes of com.sun.enterprise.web.ConnectionShutdownUtil

Copyright © 2018 www.massapicom. 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.