• Post Reply Bookmark Topic Watch Topic
  • New Topic

Asynchronous Processing with Servlet 3.0  RSS feed

 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to understand asynchronous processing with servlet 3.0

Will the below code guaranteed to always generate output in the below order

I'm inside!
I'm leaving! Bye!
*** I'm an async thread!



When we use Asynchronous processing to handle requests , when response is sent to the client.
What I know is , doGet() method completes and servlet thread is free and other asynchronous thread performs its task. So may be its complete() method that marks the end of request processing.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!