Introduction
Java EE 6 comes with two ready to use asynchronous technique:
- EJB
- Servlet
EJB
Example
Oracle Java EE 6 Tutorial: Asynchronous Method Invocation
Oracle Java EE 6 Tutorial: Using Alternatives in CDI Applications
Servlet
This asynchronous feature is less documented, but could be used for example a servlet that generates a PDF or some other heavy computing.
Example