3 Replies Latest reply on Jul 24, 2019 11:20 AM by tomjenkinson

    BaseTransactionalDriverXAConnection.validTransaction method

    arielcarrera

      Sorry if I'm not seeing something... why double check the equality of the object of the transaction?

       

          public final boolean validTransaction(javax.transaction.Transaction tx) {
              boolean valid = true;
      
      
              if (_theTransaction != null) {
                  valid = _theTransaction.equals(tx);
                  if (!valid) {
                      valid = _theTransaction.equals(tx);
                  }
              }
      
      
              return valid;
          }

       

       

      https://github.com/jbosstm/narayana/blob/9f42d45b664483c9f0e17cb20122c1d5436ba856/ArjunaJTA/jdbc/classes/com/arjuna/ats/internal/jdbc/BaseTransactionalDriverXAConnection.java#L81