File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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.
I agree. Here's the link:
subject: What is an EAR file?
jQuery in Action, 3rd edition