Skip to main content

Arun Gupta - TOTD #139: Asynchronous Request Processing using Servlets 3.0 and Java EE 6

Arun Gupta presents TOTD #139: Asynchronous Request Processing using Servlets 3.0 and Java EE 6:

Server resources are always valuable and should be used conservatively. Consider a Servlet that has to wait for a JDBC connection to be available from the pool, receiving a JMS message or reading a resource from the file system. Waiting for a "long running" process to completely blocks the thread - waiting, sitting and doing nothing - not an optimal usage of your server resources. Servlets 3.0 introduces the ability to asynchronously process requests such that the control (or thread) is returned back to the container to perform other tasks while waiting for the long running process to complete...

Community: Java Enterprise