Wednesday, March 2, 2011

CDI Event Bus Basics Screencast

Another day another screencast. This one's about the Event Bus that is part of CDI. Contexts and Dependency Injection is part of Java EE but available in SE using the Weld framework. This screencast shows you how to use CDI events and the event system, which is just one part of the larger CDI feature set. The screencast briefly explains the benefits of an event system and then shows how easy it is to use it from CDI.

If it doesn't play correctly, you may want to launch it from the site.

You could do worse with 5 minutes of your time.

If you like this, you can check out my other screencasts on YouTube ( or (

1 comment:

Hamlet D'Arcy said...

one note... this example is /just/ an example and not production code. The events are all processed on the same thread, so this demo does eventually end in a stack overflow because nested events keep getting posted on the same thread. Oops! There is no API in CDI for asynchronous events that I am aware of.