The file beans.xml for CDI projects
To enable CDI in your project, you need (among other things) to place a file called beans.xml
in your WEB-INF
folder. It may remain mostly empty, until you start using some of the more advanced CDI features, e.g. interceptors or decorators would be defined in this file.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
</beans>