Contexts and Dependency Injection (CDI)

Contexts and Dependency Injection for the Java EE platform (CDI) is a JSR 299 implementation that is based on Apache OpenWebBeans.

CDI is activated in an application by the presence of a beans.xml file inside that module, as defined by the JSR 299 specification. You can find the beans.xml file in the WEB-INF directory of a web archive (WAR) or META-INF directory of other types of archives. When activated, the container provides services such as:

The specification-related API classes for JSR 299 and JSR 330 and IBM® modified implementation classes that are based on Apache OpenWebBeans are packaged with the application server runtime environment.

Although the WebSphere® Application Server CDI implementation is based on Apache OpenWebBeans, there are some changes and additions on top of OpenWebBeans to support integration with the server run time:
Important: Container-managed transactions and security are not provided by CDI.



Related information
Contexts and Dependency Injection (CDI)
Troubleshooting contexts and dependency injection
Concept topic Concept topic    

Terms of Use | Feedback

Last updatedLast updated: Sep 19, 2011 5:16:49 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=matt&product=was-base-iseries&topic=cweb_cdi
File name: cweb_cdi.html