Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-116

setting of default timeout logic broken in mbean

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 4.2.2
    • 4.2.1
    • JTA
    • None

      The mbean code for setting the default timeout says:

      public void setTransactionTimeout(int timeout) throws javax.transaction.SystemException
      {
      if (timeout > 0)

      { TxControl.setDefaultTimeout(timeout); }

      else
      throw new javax.transaction.SystemException("Transaction Timeout < 0");
      }

      This means that it's not possible for anyone to provide a value of -1, which means: transactions never timeout. Also, the if clause should say >= 0 if the else clause is to be accurate.

            kconner@redhat.com Kevin Conner (Inactive)
            nmcl2001 Mark Little
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: