About this task
You can now place EJB classes directly in the .WAR file,
using the same packaging guidelines that apply to web application
classes. You can place EJB classes under the WEB-INF/classes directory
or in a JAR file within the WEB-INF/lib directory. The EJB deployment
descriptor is also optional. If you need it, you can package the EJB
deployment descriptor as a WEB-INF/ejb-jar.xml file.
The rules for
packaging EJB content in a WAR module are different from the rules
for packaging EJB content in a JAR module. For more information about
packaging EJB content in WAR files, see EJB content in WAR modules