March 29, 2016

Asynchronous Support in Java EE 6

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

No comments: