1 Reply Latest reply on Mar 30, 2009 11:28 AM by Dan Bush

    TransactionTimeout Not Working

    Dan Bush Newbie

      Is there any way to obtain a reference to the current transaction from within a 3.0 Stateless CM EJB (JBoss 4.3.0 Enterprise). I have a particular method annotated with @TransactionTimeout but, it dosen't seam to be taking. I would like to obtain a reference to the transaction and dump out the current timeout value for verification if at all possiable ...



        • 1. Re: TransactionTimeout Not Working (Closure)
          Dan Bush Newbie

          Further testing has revealed that that the @TransactionTimeout can NOT be used to extend the timeout configured in "jboss-service.xml". However it can be used to restrict it. Furthermore the @TransactionTimeout at the class level works globally and in conjunction with the method level annotation as expected. This mean that we can open up the transaction window to accommodate the longest expected transaction server wide and explicitly configure reasonable timeout windows at the EJB component level. With this approach we will be able to open up the transaction window for specific operations up to the max server defined timeout.



          In our initial testing it appeared as if the TransactionTimeout annotation was not honored. Now it's clear that it is honored and can be used to limit the server default but, it can not be used to open it up.