Details

    • Affects:
      Documentation (Ref Guide, User Guide, etc.)

      Description

      It does not appear as though the 3.2 set-tx-query-timeout *-ds.xml setting has been ported to 4.x/head.

        Gliffy Diagrams

          Activity

          Hide
          adrian.brock Adrian Brock added a comment -

          This needs doing this properly, i.e. referencing whether the connection manager passed
          to the MCF supports a timeout interface.
          jdbc rar -> connection manager -> tranasction manager

          I also want to look at setting the transaction timeout for XAResources at enlistment.

          Show
          adrian.brock Adrian Brock added a comment - This needs doing this properly, i.e. referencing whether the connection manager passed to the MCF supports a timeout interface. jdbc rar -> connection manager -> tranasction manager I also want to look at setting the transaction timeout for XAResources at enlistment.
          Hide
          adrian.brock Adrian Brock added a comment -

          By way of support there is now an additional method on TransactionTimeoutConfiguration
          and interface implemented by the JBoss tranasction manager.

          /**

          • Get the time left before transaction timeout
          • @param errorRollback throw an error if the transaction is marked for rollback
          • @return the remaining in the current transaction or -1
          • if there is no transaction
          • @throws RollbackException if the transaction is marked for rollback and
          • errorRollback is true
            */
            long getTimeLeftBeforeTransactionTimeout(boolean errorRollback) throws RollbackException;

          This interface is now also implemented by the connection manager passed to the ManagedConnectionFactory
          when creating connection factories like DataSources.
          The TxConnectionManager just delegates to the transaction manager (if it implements the interface)
          otherwise -1 is returned, which is also the value returned for no-tx connection managers.

          Show
          adrian.brock Adrian Brock added a comment - By way of support there is now an additional method on TransactionTimeoutConfiguration and interface implemented by the JBoss tranasction manager. /** Get the time left before transaction timeout @param errorRollback throw an error if the transaction is marked for rollback @return the remaining in the current transaction or -1 if there is no transaction @throws RollbackException if the transaction is marked for rollback and errorRollback is true */ long getTimeLeftBeforeTransactionTimeout(boolean errorRollback) throws RollbackException; This interface is now also implemented by the connection manager passed to the ManagedConnectionFactory when creating connection factories like DataSources. The TxConnectionManager just delegates to the transaction manager (if it implements the interface) otherwise -1 is returned, which is also the value returned for no-tx connection managers.
          Hide
          adrian.brock Adrian Brock added a comment -

          <set-tx-query-timeout/> is now ported to 4.0.x and head.
          Additionally there is a new configurable maximum <query-timeout/>.
          see http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigDataSources or the dtd

          Show
          adrian.brock Adrian Brock added a comment - <set-tx-query-timeout/> is now ported to 4.0.x and head. Additionally there is a new configurable maximum <query-timeout/>. see http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigDataSources or the dtd
          Hide
          adrian.brock Adrian Brock added a comment -

          Added support for static XAResource transaction timeout configuration.
          See http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigJCACommon or the dtd

          Show
          adrian.brock Adrian Brock added a comment - Added support for static XAResource transaction timeout configuration. See http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigJCACommon or the dtd

            People

            • Assignee:
              adrian.brock Adrian Brock
              Reporter:
              starksm64 Scott Stark
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development