Oracle Logo

Asynchronous Servlet

 

Feature Introduction

Servlet 3.0 supports asynchronous processing. The servlet does not have to wait for a time-consuming process to complete, such as database processing.

Description of Example

A servlet is defined to communicate with a thread asynchronously. This thread is initialized in the doGet method of the servlet to work asynchronously for the servlet instance. All of this work is performed by the asynchronous API of the servlet.

Use This Example

Click "Run" to run the asynchronous servlet example.