Abstract
In this chapter, we will discuss Contexts and Dependency Injection (CDI). CDI provides powerful services to glue the various tiers of the Java EE framework together. The first public draft of Java Contexts and Dependency Injection for the Java EE Platform, as defined in JSR 299, was made public in 2008. During the initial development phase, the JSR 299 specification was called Web Beans. After the specification was renamed to Contexts and Dependency Injection, the initial reference implementation was given the name Web Beans. The use of the same name, Web Beans, in two different contexts created some confusion among the community members, and this led to the renaming of the reference implementation from Web Beans to Weld. CDI builds upon the Interceptor Specification (JSR 318), the Managed Bean Specification (JSR 316), and the Dependency Injection for Java Specification (JSR 330).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2013 Jonathan Wetherbee
About this chapter
Cite this chapter
Wetherbee, J., Rathod, C., Kodali, R., Zadrozny, P. (2013). Contexts and Dependency Injection. In: Beginning EJB 3. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4693-0_10
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4693-0_10
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-4692-3
Online ISBN: 978-1-4302-4693-0
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)