Beans.xml: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * CDI Concepts =Overview=")
 
No edit summary
Line 4: Line 4:


=Overview=
=Overview=
Must be placed in WEB-INF/ directory of WAR archives.
<tt>beans.xml</tt> is required to trigger the processing of the CDI annotations - even if its content is empty:
<pre>
<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>
</pre>

Revision as of 16:45, 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>