/** * Gracefully terminate the active use of the public methods of this * component. This method should be the last one called on a given * instance of this component. * * @exception LifecycleException if this component detects a fatal error * that needs to be reported */ @Override public void stop() throws LifecycleException { // START CR 6411114 if (!started) // Ignore stop if not started return; // END CR 6411114 sso = null; // START CR 6411114 super.stop(); // END CR 6411114 } // BEGIN S1AS8 PE 4856062,4918627
/** * Gracefully terminate the active use of the public methods of this * component. This method should be the last one called on a given * instance of this component. * * @exception LifecycleException if this component detects a fatal error * that needs to be reported */ public void stop() throws LifecycleException { // START CR 6411114 if (!started) // Ignore stop if not started return; // END CR 6411114 close(); // START CR 6411114 super.stop(); // END CR 6411114 }
/** * Gracefully terminate the active use of the public methods of this * component. This method should be the last one called on a given * instance of this component. * * @exception LifecycleException if this component detects a fatal error * that needs to be reported */ public void stop() throws LifecycleException { // START CR 6411114 if (!started) // Ignore stop if not started return; // END CR 6411114 if (debug >= 1) log(rb.getString(LogFacade.STOP_COMPONENT_INFO)); // START CR 6411114 super.stop(); // END CR 6411114 }
/** * Invoked by tomcat on shutdown. The database connection is closed here. * * @exception LifecycleException Can be thrown on lifecycle * inconsistencies or on database errors (as a wrapped SQLException). */ public void stop() throws LifecycleException { // START CR 6411114 if (!started) // Ignore stop if not started return; // END CR 6411114 try { if (ps != null) ps.close(); if (conn != null) conn.close(); } catch (SQLException e) { throw new LifecycleException(e); } // START CR 6411114 super.stop(); // END CR 6411114 }
/** * Gracefully terminate the active use of the public methods of this * component. This method should be the last one called on a given * instance of this component. * * @exception LifecycleException if this component detects a fatal error * that needs to be reported */ public void stop() throws LifecycleException { // Validate and update our current component state /** CR 6411114 (Lifecycle implementation moved to ValveBase) if (!started) throw new LifecycleException (sm.getString("extendedAccessLogValve.notStarted")); lifecycle.fireLifecycleEvent(STOP_EVENT, null); started = false; */ // START CR 6411114 if (!started) // Ignore stop if not started return; // END CR 6411114 close(); // START CR 6411114 super.stop(); // END CR 6411114 }