3 Replies Latest reply on May 8, 2015 1:04 AM by valsaraj007

    What is the best method to trigger another thread from servlet?

    valsaraj007

      Hi,

       

      I have an old code that used running in JBoss 4.2.2.GA. The request comes to servlet and then servlet processes it which contains code which takes more time. We need to return response quickly to user and so we started a new thread to process this time taking code. Started another thread using new Thread() not seems to be better. It is a JavaEE application. So can we replace this new thread part with any feature like Asynchronous EJB? I didn't check Asynchronous EJB yet. Please advice.

       

      Thanks!