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 126.96.36.199 or earlier and the feature supports that version, use the featureManager command, for example:
bin/featureManager install cdi-2.0 --when-file-exists=ignore
To use the feature at runtime add the following to your server.xml file