August 2018
Intermediate to advanced
314 pages
8h 9m
English
Another alternative that appeared on the evolutionary scale of the JEE platform was the event mechanism that is a part of the CDI specification. The mechanism is composed of producers and consumers of events, meaning that one component fires an event and another component of the application receives the event, acting as a listener or observer.
Up to the JEE8 specification, this event mechanism was done synchronously. With the introduction of CDI 2.0 in the JEE8 specification, the events API included improvements such as asynchronous use.
The following diagram shows the asynchronous mechanism for sending and receiving events:
Now, we will see the basics of how to implement the codes of a producer ...
Read now
Unlock full access