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.
Avoid trouble Avoid trouble: CDI is only supported with the default WebSphere Application Server class loader policy, Class loader for each WAR file in application, and not with the alternative, single class loader for application setting.gotcha
Concept topic    

Terms and conditions for information centers | Feedback

Last updated: April 20, 2014 08:46 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-nd-mp&topic=cweb_cdi
File name: cweb_cdi.html