<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi Emily,</div><div><br></div><div>The rules) apply to each jar (archive). There is no merging, thus an app can contain three types of archives :</div><div>Non bean archives,</div><div>Implicit bean archives,</div><div>Explicit bean archives.&nbsp;<br><br><div>Antoine Sabot-Durand</div><div><br></div></div><div><br>Le 1 mai 2015 à 23:03, Emily Jiang &lt;<a href="mailto:emijiang6@googlemail.com">emijiang6@googlemail.com</a>&gt; a écrit&nbsp;:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div><div><br clear="all"></div>I have a question on bean archives. <br><br></div><div>For the jars under web-inf\lib, are they individual bean archives or they should be merged &nbsp; with web-inf\classes files and use the beans.xml under web-inf\ to form one bean archive?<br><br></div><div>If they are merged together to form one bean archive, what will happen if they have their own beans.xml under Meta-inf dir?<br></div><div><br></div><div>Below is the what spec says, but it does not mention the jar under web-inf\lib. The spec should make this situation clear.<br></div><div><br></div>In the CDI1.2 spec:<br>When determining which archives are bean archives, the container must consider:<br>• Library jars, EJB jars or application client jars<br>• The WEB-INF/classes directory of a war<br>• Directories in the JVM classpath<br>The container is not required to support application client jar bean archives.<br>A Java EE container is required by the Java EE specification to support Java EE modules. Other<br>containers may or may not provide support for war, EJB jar or rar bean archives.<br>The beans.xml file must be named:<br>• META-INF/beans.xml , or,<br>• in a war, WEB-INF/beans.xml or WEB-INF/classes/META-INF/beans.xml.<br><br><br><div><br><div>-- <br><div class="gmail_signature">Thanks<br>Emily<br>=================<br>Emily Jiang<br><a href="mailto:ejiang@apache.org" target="_blank">ejiang@apache.org</a><br></div>
</div></div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>cdi-dev mailing list</span><br><span><a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a></span><br><span><a href="https://lists.jboss.org/mailman/listinfo/cdi-dev">https://lists.jboss.org/mailman/listinfo/cdi-dev</a></span><br><span></span><br><span>Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (<a href="http://www.apache.org/licenses/LICENSE-2.0.html">http://www.apache.org/licenses/LICENSE-2.0.html</a>). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.</span></div></blockquote></body></html>