1 Reply Latest reply on Nov 19, 2013 8:34 AM by wdfink

    Timeout on a method invocation - stateless bean

    radudeliu

      Hi guys,

       

      I have a stateless session bean that must send an answer to the client in 60 seconds. I would like that the application server to throw an exception if the method doesn't return in this amount of time.

       

      It is possible to configure a timeout on a method invocation?

       

      I'm using JBoss 5.1.0.GA.

       

      Thanks,

      Radu

        • 1. Re: Timeout on a method invocation - stateless bean
          wdfink

          With AS5 there is no option to configure that

          I have done that with a client thread, the origin that sleep Xsec after starting the ivocation in another thread. It will inform the new thread whether to rollback the Tx in case of timeout.

           

          With AS7 or WildFly the new ejb-client will have such configuration for invocation-timeout, but only global for the complete connection.