0 Replies Latest reply on Aug 21, 2007 6:32 PM by rvaneperen

    Setting Transaction Timeout for Method

    rvaneperen

      I have looked through this forum and searched for the answer with no luck. I am using JBoss 4.0.5 and ejb3 and I need to set the transaction timeout for some long running methods. I have tried setting it on an MDB using:

      @TransactionManagement(value = TransactionManagementType.CONTAINER)
      for the class and
      @TransactionTimeout(value = 600)
       @TransactionAttribute(TransactionAttributeType.REQUIRED)
      on the method. This MDB then calls a SLSB method that is not annotated.

      I have also tried using:
      @TransactionManagement(value = TransactionManagementType.CONTAINER)
      @TransactionAttribute(TransactionAttributeType.REQUIRED)
      on the SLSB class (which is called from the MDB) and
      @TransactionTimeout(value = 600)
      

      on the method. Neither seems to work.

      Any ideas?