2 Replies Latest reply on Apr 18, 2011 12:51 PM by wolfc

    @Asynchronous invocation retain session context

    putopuntocom

      Hello,

      I have this situation. A client is invoking several asynchronous stateless session bean methods returning a AsyncResult.

      The client wait for 30 secs for a response and after this calls cancel method of the Future object.

      Ok cancel it's not woking. It doen't matter becouse i don't mind about cancelling the executions of the asynchronous methods.

       

      The problem is that the container keeps the reference to all the SessionBeans that haven't been consumed calling Future.get() causing some out of memory problems after some hours.

       

      What i should do to avoid this? I'm planning to wait in another thread after 30 secs to the rest of the results.

       

      Is there any way of specifing a Timeout to Asynchronous methods?

       

      Thanks in advance,

      Nacho.