public void reconnect() throws QueryException {
  boolean inTransaction=currentProtocol != null && currentProtocol.inTransaction();
  reconnectFailedConnection(new SearchFilter(true,false));
  handleFailLoop();
  if (inTransaction) {
    throw new ReconnectDuringTransactionException("Connection reconnect automatically during an active transaction",1401,"25S03");
  }
}

public void reconnect ( ) throws QueryException { boolean inTransaction = currentProtocol != null && currentProtocol . inTransaction ( ) ; reconnectFailedConnection ( new SearchFilter ( true , false ) ) ; handleFailLoop ( ) ; if ( inTransaction ) { throw new ReconnectDuringTransactionException ( "Connection reconnect automatically during an active transaction" , 1401 , "25S03" ) ; } }
try to reconnect connection .
