...
Add Apache OpenWebBeans to the project (see the documentation of the project).
Code Block |
---|
| xml | xml |
---|
title | Java-EE5 module for OpenWebBeans |
---|
| xml |
---|
|
<dependency>
<groupId>org.apache.myfaces.extensions.cdi.modules.jee5-support</groupId>
<artifactId>myfaces-extcdi-jee5-openwebbeans-support</artifactId>
<version>${myfaces.codi.version}</version>
<scope>runtime</scope>
</dependency>
|
Furthermore, you have to replace the WebBeans listener in the web.xml with the listener provided by MyFaces CODI.
Code Block |
xml |
---|
| xml |
---|
title | Replacement for the web.xml |
---|
| xml |
---|
|
<listener>
<listener-class>org.apache.myfaces.extensions.cdi.openwebbeans.startup.WebBeansAwareConfigurationListener</listener-class>
</listener>
|
...
Add Weld to the project (see the documentation of the project).
Code Block |
xml |
---|
| xml |
---|
title | Java-EE5 module for Weld |
---|
| xml |
---|
|
<dependency>
<groupId>org.apache.myfaces.extensions.cdi.modules.jee5-support</groupId>
<artifactId>myfaces-extcdi-jee5-weld-support</artifactId>
<version>${myfaces.codi.version}</version>
<scope>runtime</scope>
</dependency>
|
Furthermore, you have to replace the Weld listener in the web.xml with the listener provided by MyFaces CODI.
Code Block |
xml |
---|
| xml |
---|
title | Replacement for the web.xml |
---|
| xml |
---|
|
<listener>
<listener-class>org.apache.myfaces.extensions.cdi.weld.startup.WeldAwareConfigurationListener</listener-class>
</listener>
|