This tutorial shows the basics of Contexts and Dependency Injection (CDI) for Java EE 6 by developing a sign-up form that uses servlets to process its data and inject Java beans.
Contexts and Dependency Injection (CDI) is a new feature in Java EE 6 that defines a powerful and type-safe Dependency Injection using “contextual” references or scopes. Based on the JSR-299 specification, CDI supplies a set of services that allow Java EE components (such as EJB session beans and JavaServer Faces managed beans) to be bound to lifecycle contexts. These components can then be injected and interact in a loosely coupled way by firing and observing events. The contextual nature of CDI allows the use of beans from different scopes to be more natural and convenient.
Duration: 60 minutes
Release Date: 12-APR-2013
Created by: Miguel Salazar
This multi-part series introduces you to the Java EE 6 Contexts and Dependency Injection feature.
Release Date: 15-FEB-10
Release Date: 15-APR-11
Release Date: 20-JUN-12