2 Replies Latest reply on Jul 5, 2011 12:45 PM by Andrea Giovannini

    Terminate EJB execution

    Andrea Giovannini Newbie

      Hi,

      I have a J2EE application (with EJB 2.0) running on JBoss 3.2.1 and 4.2.2: is there the possibility to terminate the execution of an EJB?

       

      My problem comes from SQL queries, executed from the EJB, that can take too much time to execute so I want to give to the user the possibility to terminate the execution.

       

      I've seen in the forums answers related to using asynchronous invocations but I would like not to change the architecture of the application (all the requests are synchronous), so I'm looking for the way to terminate an EJB.

       

      Thanks in advance,

      Andrea