ONJava.com: Using Dependency Injection in Java EE 5.0: "Using Dependency Injection in Java EE 5.0
by Debu Panda
Dependency injection, or inversion of control (IOC), is today's latest development craze. IOC containers such as Spring have become popular because they simplify the complexities of enterprise Java that come mostly from Java Naming and Directory Interface (JNDI). In this article, I'll discuss how you can use dependency injection in the upcoming Java EE 5.0 specification for resources and services. I migrated the J2EE 1.4 Blueprint application Java Adventure Builder to use EJB 3.0, web services metadata, and dependency injection; I'll use this application to illustrate concepts in this article."