Beans.xml: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
<pre> | <pre> | ||
<beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | <beans xmlns="http://java.sun.com/xml/ns/javaee" | ||
xsi:schemaLocation=" | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
http://java.sun.com/xml/ns/javaee | xsi:schemaLocation="http://java.sun.com/xml/ns/javaee | ||
http://java.sun.com/xml/ns/javaee/beans_1_0.xsd"> | http://java.sun.com/xml/ns/javaee/beans_1_0.xsd"> | ||
</beans> | </beans> | ||
</pre> | </pre> |
Latest revision as of 16:47, 1 May 2017
Internal
Overview
Must be placed in WEB-INF/ directory of WAR archives.
beans.xml is required to trigger the processing of the CDI annotations - even if its content is empty:
<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>