OnJava.com: Dependency Injection with EE 5.0

OnJava.com have an article giving an overview of how Java 5.0 annotations are used in EE5.0 to support dependency injection.

The article shows how resources which normally have to be ‘looked up’ by the developer writing extra lines of code, can be instead injected into the code using annotations and support from the container. App servers such as Oracle App Server 10g 10.1.3 and JBoss 4.0.1 currently support this functionality, but expect it to be supported in all app servers once we get to Java EE5.0 runnning on Java 5.0 within the next year or so.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.