1 2 Previous Next 16 Replies Latest reply on Sep 23, 2010 2:33 PM by Pablo Fraga

    Can't get @TransactionTimeout to work

    René Lund Jensen Newbie

      I have a Stateless EJB3 bean which specify:

      @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
      @TransactionTimeout(3600)
      public Long doMerge(String someParams) {
       // Some DB acces which runs for more than 5 minutes
       // which is the default transaction-timeout value
      }
      


      I'm deploying this on the JBossAS v. 4.0.5-GA

      But it dos'nt seem to work. I get a transaction timeout after the default value of 5 minutes.

      If I use the "fix" given here:
      http://www.jboss.com/index.html?module=bb&op=viewtopic&t=108173
      I do get two timeout messages follow each-other

      I've spent two days crawling the net looking for documentation on how to use this annotation. If someone could tell me exactly how this should be working I would be very glad.

      /RLJ


        1 2 Previous Next