My 3 years old MacBook Pro went suddenly dead this week. Annoying as it is, this event allowed me to experience cloud computing like never before.
This notebook has been my main computer for the past 3 years. I used it for everything and carried it around wherever I went.
One day this week I was using it with tons of apps open as usual (I am known to never close anything...why do we have 4GB RAM...
In this post I will share my recent findings about Container Dependency Injection in Java EE 6, in particular how to decouple the processing threads of event producers and event consumers.
Java EE 6 introduces a very nice dependency injection framework (CDI) that has superb support for the Observer pattern in the form of event broadcasting.
An Event in CDI is just a regular POJO: