Skip to main content

Contexts and Dependency Injection

  • Chapter
  • First Online:
Beginning EJB 3
  • 1457 Accesses

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).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics