EJB Packaging

TypeDescriptionDescriptorContents
CARClient application archivesapplication-client .xmlThick Java client for EJBs
EAREnterprise application archiveapplication.xmlOther Java EE modules such as EJB-JARs.
EJB-JAREJB Java archiveejb-jar.xmlSession beans, message-driven beans, and optionally entities. Needs a persistence.xml if entities are packaged.
RARResource adapter archivesra.xmlResource adapters.
WARWeb application archivesweb.xmlWeb application artifacts such as servlets, JSPs, JSF, static files, etc. Entities can also be packaged in this module. Needs a persistence.xml if entities are packaged.
Java EE 5 made the deployment descriptor optional, even in the EAR. This is a departure from previous versions of Java EE, where it was mandatory. The Java EE 5.0.compliant application servers deploy by performing automatic detection based on a standard naming convention or reading the content of archives.