This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes What is an EAR file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "What is an EAR file?" Watch "What is an EAR file?" New topic

What is an EAR file?

Med Shabe
Ranch Hand

Joined: May 08, 2001
Posts: 84
My understandig is that EAR contains WAR file(s), which in turn contains Web Application components such as Servlets, JSPs, etc. But What exactly does an EAR do that WAR can't?
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
You know, the J2EE spec explains all of this. It's a good place to start for these kind of questions.
Anyway, an EAR contains not only WARs but EJB JAR files too. Also, and EAR provides information that unifies the security model and other metadata between the different JARs and EARS that it contains.
[ February 23, 2002: Message edited by: Kyle Brown ]
[ February 23, 2002: Message edited by: Kyle Brown ]

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
wood burning stoves
subject: What is an EAR file?
Similar Threads
between .ear file and .war file
Deploying ear files on jboss
error delploying ear file on JBOSS 3.0.8
difference btn Jar, War and Ear File