0 Replies Latest reply on Feb 12, 2007 2:22 PM by Bibha Patnaik

    Transaction Timeout

    Bibha Patnaik Newbie

      As part of a debugging process, I am trying to enforce Transaction
      Time out. I am using Jboss-3.2.3 and have changed the following
      configurations.

      The beans are Container managed.

      jboss-service.xml ?

      <mbean code="org.jboss.tm.TransactionManagerService"
      name="jboss:service=TransactionManager"
      xmbean-dd="resource:xmdesc/TransactionManagerService-xmbean.xml">

      45

      <depends optional-attribute-name="XidFactory">jboss:service=XidFactory



      jboss.xml in META-INF -



      <ejb-name>TestSessionBean</ejb-name>
      <jndi-name>TestService/TestSession</jndi-name>
      <exception-on-rollback>true</exception-on-rollback>
      true
      <method-attributes>

      <method-name>testOverriddenTimeoutExpires</method-name>

      <transaction-timeout>5</transaction-timeout>




      <method-name>testOverriddenTimeoutDoesNotExpire</method-name>

      <transaction-timeout>5</transaction-timeout>


      </method-attributes>



      I have tried to trace the Transaction Log by appending in log4j.xml,
      but could not find any relevant information.

      I have added code to make sure that the processing would take more
      than a minute, but still haven't been able to simulate the transaction
      time out.

      Please let me know what else is needed to be done.

      Thanks for your help.