Explaining the concept of an asynchronous EJB method

Launching events to elements that react to these events is a good mechanism for solving many kinds of problems during development. However, sometimes it is necessary to call a class method without blocking the process until this method completes the execution.

An asynchronous EJB method is a mechanism of EJB that allows the client to call a method and receive its return as soon as the method is invoked. The return of a method is in control of the asynchronous call represented by the Future<T> object. The client can control the execution of the asynchronous method. These actions can cancel the invocation method, check whether the invocation is completed, check whether the invocation has ...

Get Java EE 8 Design Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.