In this chapter we introduce the concept of dependency injection and why it is so important in Java EE. The we go on to show how to implement dependency injection in Java SE.
We continue by discussing how dependency injection is implemented in Java EE and introduce context dependency injection by discussing the key differences between context dependency injection and the enterprise Java bean container.