What's an .ear file?

Mobushir Hingorjo

An .ear file is an "Enterprise Archive" file. The file has the same format as a regular .jar file (which is the same as ZIP, incidentally). The .ear file contains everything necessary to deploy an enterprise application on an application server. It contains both the .war (Web Archive) file containing the web component of the application as well as the .jar file. In addition there are some deployment descriptor files in XML. http://java.sun.com/j2ee/j2sdkee/techdocs/guides/ejb/html/Overview.fm.html contains additional information.