1 Reply Latest reply on Mar 19, 2014 8:51 AM by sunil_patel

    @TransactionTimeout not working  in EJB 3

    rameshchokkapu

      Hi...

       

      We will get  lakhs of requests to my jboss server.

      we are processing each request  avg response time below 2 seconds.

      but some of request are taking long time, means more than 5 minutes.

      we want to quit from these long time requests to 60 seconds.

       

      @TransactionTimeout not working  in EJB 3 :

       

      @Stateless

      @TransactionManagement(TransactionManagementType.BEAN)

      @LocalBean

      public class TestEJBBean {

       

      @TransactionTimeout(value = 60, unit = TimeUnit.SECONDS)

          public String processEJBMethod(String RQ) throws Exception{

                      -------------------------------------------

                      --------------------------------------------

                     return RS;

          }

      }


      Is this work only for container managed transaction?


      Please kindly reply..