In this section, we introduce the concurrent API ready in Java EE 7 under the javax.enterprise.concurrent package. This is a new set of utilities represented by the Java Specification Request (JSR) 236 specifications that guides the developer to a correct use of the threads inside the enterprise components. Using threads directly in the container is dangerous and it often generates out-of-control situations.
A standard management of threads is useful to let a major control. With a specification, it is easy to get instruments of monitoring and more robust processes. In the next section, we will analyze the threads together with the distributed transactions.
Java 5 SE introduces the standard concurrent API. The EE concurrent API works together with them.