0 Replies Latest reply on Oct 12, 2007 8:00 AM by Andreas Scheucher

    Transaction does not time out

    Andreas Scheucher Newbie


      I wrote a JUnit test to be sure to have understood and configured my JBoss TransactionTimeout correctly.

      The general timout ist set in the deployment directory jta-service.xml to 1000 seconds:

       <!-- ==================================================================== -->
       <!-- Transactions -->
       <!-- ==================================================================== -->
       <!-- The configurable Xid factory. For use with Oracle, set pad to true -->
       <mbean code="org.jboss.tm.XidFactory"
       <!--attribute name="Pad">true</attribute-->
       | The fast in-memory transaction manager.
       <mbean code="org.jboss.tm.TransactionManagerService"
       <attribute name="TransactionTimeout">1000</attribute>
       <!-- set to false to disable transaction demarcation over IIOP -->
       <attribute name="GlobalIdsEnabled">true</attribute>
       <depends optional-attribute-name="XidFactory">jboss:service=XidFactory</depends>

      As I need a call to a stored procedure in a database I needed to extend the timeout, but did not want to do this for the whole application. So I set the TransactionTimout on the method implementation with the @TransactionTimout(value=1200) annotation. So far so good.

      To test the standard behavior I created a second method without it's own TransactionTimout. So it should cause a TransactionTimeout after 1000 seconds. But it does not!

      I did a grep for TransactionTimeout in all configuration and deploy directories of my jboss, but could not find any other configuration. So I am stuck now. :-(

      Anybody any ideas?

      Thanks in advance!
      greets, Andreas