/** * @see javax.sql.ConnectionEventListener#connectionErrorOccurred(javax.sql.ConnectionEvent) */ public void connectionErrorOccurred ( ConnectionEvent arg ) { DTPPooledConnection pc = (DTPPooledConnection) arg.getSource (); pc.removeConnectionEventListener ( this ); pc.setInvalidated (); }
pc_.setInvalidated (); pc_.close (); if ( LOGGER.isDebugEnabled() ) LOGGER.logDebug ( String msg = "Exception in pooled connection: unexpected error - closing it"; LOGGER.logWarning ( msg, e ); pc_.setInvalidated (); pc_.close (); AtomikosSQLException.throwAtomikosSQLException ( e.getMessage() , e );