Contexts and Dependency Injection 2.0

The Contexts and Dependency Injection 2.0 specification makes it easier to integrate Java EE components of different types. It provides a common mechanism to inject component such as EJBs or Managed Beans into other components such as JSPs or other EJBs.

Command Line Install

To install the feature from the command line, type:bin/installUtility install cdi-2.0
If you are installing into 8.5.5.5 or earlier and the feature supports that version, use the featureManager command, for example:bin/featureManager install cdi-2.0 --when-file-exists=ignore

Config Instructions

To use the feature at runtime add the following to your server.xml file<featureManager>
<feature>cdi-2.0</feature>
</featureManager>

Additional Information

For the complete feature documentation, see the cdi-2.0 feature description in IBM Knowledge Center.