Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Starting a new thread in Servlet

Shravan-OracleDec 23 2011 — edited Dec 23 2011
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 20 2012
Added on Dec 23 2011
1 comment
1,720 views