public void stop ( ) { isStarted = false ; Iterator i = allConnections . iterator ( ) ; while ( i . hasNext ( ) ) { ConnectionWrapper connWrap = ( ConnectionWrapper ) i . next ( ) ; try { connWrap . getConnection ( ) . close ( ) ; } catch ( SQLException e ) { nrofErrors ++ ; System . out . println ( new LogEntry ( e ) ) ; } } allConnections . clear ( ) ; availableConnections . clear ( ) ; usedConnections . clear ( ) ; }
Stops the component and closes all connections