Uploaded image for project: 'Quartz Scheduler (Historical - Do Not File New Issues Here - See GitHub)'
  1. Quartz Scheduler (Historical - Do Not File New Issues Here - See GitHub)
  2. QTZ-370

Override default transaction timeout when beginning new UserTransaction

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: 2 Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.7
    • Fix Version/s: 2.2
    • Component/s: JTA/XA Transactions
    • Labels:
      None
    • Terracotta Target:
      Quartz 2.1.x
    • Fixed In Revision:
      2287

      Description

      When Quartz is beginning a new UserTransaction, either by adding @ExecuteInJTATransaction on Job or by enabling org.quartz.scheduler
      .wrapJobExecutionInUserTransaction property, I would like to override the default transaction timeout which is too short for scheduled Jobs.

      For example, @ExecuteInJTATransaction(timeout=500) would call userTransaction.setTransactionTimeout(500).

      http://docs.oracle.com/javaee/6/api/javax/transaction/UserTransaction.html#setTransactionTimeout(int)

        Attachments

          Activity

            People

            • Assignee:
              cdennis Chris Dennis
              Reporter:
              gquintan Gerald Quintana
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: