1. Java Archives (JAR) A JAR file encapsulates one or more Java classes, a manifest, and a descriptor. JAR files are the lowest level of archive. JAR files are used in J2EE for packaging EJBs and client-side Java Applications.
2. Web Archives (WAR) WAR files are similar to JAR files, except that they are specifically for web applications made from Servlets, JSPs, and supporting classes.
3. Enterprise Archives (EAR) ”An EAR file contains all of the components that make up a particular J2EE application.
No pain, No gain.
OCJP 1.6, Liferay Certified Developer 6.1
Joined: Dec 22, 2011
Great thanks for your detailed explanation of topic.
I have one more question,it seems to be simple & silly but i have some confusions over that.
What is difference between Web Application & Enterprise Application? what these applications comprises and based on which factors we will decide which is Web or Enterprise Application?.
You create an Enterprise Application when your application consists of multiple items. For example: 1 Web Application and two EJB Modules.
By doing this you only have to deploy 1 file on an application server (the .ear file)