aspose file tools*
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 Java 8 in Action this week in the Java 8 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: 3879
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.
I agree. Here's the link:
subject: What is an EAR file?
Similar Threads
error delploying ear file on JBOSS 3.0.8
between .ear file and .war file
difference btn Jar, War and Ear File
Deploying ear files on jboss