3 Replies Latest reply on Mar 2, 2006 8:27 AM by adrian.brock

    JBAS-2565 - Use TransactionManager timeout as default

    starksm64

      http://jira.jboss.com/jira/browse/JBAS-2565
      Is this something worth targeting for 4.0.4?

        • 1. Re: JBAS-2565 - Use TransactionManager timeout as default

          Maybe. But I don't understand how it is possible in general with
          XAResources supporting transaction interleaving - multiple transactions
          linked to XAResource (only one active).

          e.g.
          Tx1: start
          Tx1: end
          Tx2: start
          Tx2: end
          Tx1: commit

          Which timeout should be used and when? What are the affects?
          This ain't in the spec.

          • 2. Re: JBAS-2565 - Use TransactionManager timeout as default
            jahlborn

            i was thinking of a much simpler fix than this. i was thinking purely at the configuration level. when you configure an xa-datasource, you can (now) alter the xaresource timeout. however, if you leave the config setting out, a default (5 min or something) is used. however, our application has long running transactions, so our transaction manager configuration timeout is very long. this turned out to be meaningless because the xaresource timeout was very low. all i was asking for in the bug report was that when the xa-datasource is configured, if it has no explicit xa-resource-timeout value in the config file, then it should use the transactionmanager timeout for it's default. i realize that the actual timeouts can very at runtime due to tweaking other values, however i'm just referring to the initial values.

            • 3. Re: JBAS-2565 - Use TransactionManager timeout as default

              That can be done with a system property reference in the configuration(s).