What are ear, war and jar files
by, 01-01-2012 at 04:34 PM (3047 Views)
ear, jar and war are standard application deployment archive files. As they are considered standard therefore any kind of application server is well aware that how to deploy or unpack them.
An EAR file (standard JAR file) has an “.ear” extension, which is also known as Enterprise Archive file. J2EE application along with its modules is delivered into EAR file. Other JAR files couldn’t be present in JAR files. However, WAR and EAR files possess JAR files. An EAR file has all WARs and JARs that belong to the application. JAR Files consists of WAP files and EJB classes.
WAR files consist of web components like Servlets, JSPs and static components (CSS, HTML, and GIF etc). The J2EE application class files of client are also present in JAR files. JARs, EARs and WARs consist of XML based deployment descriptors.
J2EE Deployment Structure