<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 together 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>