An EJB side note in handling .wars and ejb-jar.xml. As already mentioned, this is WEB-INF / ejb-jar.xml, but also note that this location is only , even if in WEB-INF / lib / - there are standard ejbs blocks - through the standard rules any META-INF / ejb files -jar.xml are ignored.
The expert group has been pretty split into this, so if you have a preference, it's not too late to send feedback to the list of EJB 3.1 expert groups for consideration in EJB.next.
My vote was to allow individual banks to have META-INF / ejb-jar.xml files, as these banks can now have persistence.xmls, beans.xmls, web fragments, etc. The big problem for me was that it contradicts the Embedded EJB Container API, which supports the EAR class path, which allows several banks / modules, each of which can contain the META-INF / ejb-jar.xml file. As a result, if you use the built-in API to test an ejb application with several jar, which is compiled into a single .war file, your task is to merge any ejb-jar.xml data that you have into one ejb -jar.xml for webapp. Kind of pain for users.
David blevins
source share