Starting a new thread in Servlet
Hi All,
Can we create a new thread in servlet?
How long will the execution happens( i.e., till service/doGet/doPost method ends or till thread is completed)?
My requirement is to when a request comes to servlet immediately it should send the some response. business logic should happen in some new thread.
If you know please share me the code snippet.
Thanks,
shravan.