Home > Ask the SOA Experts > Questions & Answers > What is an ear file?
Ask The SOA Expert: Questions & Answers
EMAIL THIS

What is an ear file?

Jeff  Hanson EXPERT RESPONSE FROM: Jeff Hanson

Pose a Question
Other SOA Categories
Meet all SOA Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 10 July 2002
What is an EAR file? I need to transfer a Web app in a WAR nested in an EAR to another server running Apache Tomcat. What do I have to do?

>
EXPERT RESPONSE

Welcome to acronym hell. Sometimes I wonder if this whole Java/J2EE thing would have failed miserably, had it not been for the availability of the A-R-chive acronym derivatives. As you breeze through literature and Web sites that discuss Java and J2EE, you will see such acronyms as RAR, WAR, JAR, EAR, and possibly even TAR. I predict that someday, Java and J2EE will enable you to jump in a CAR, drive to the BAR, get in a WAR discussing PAR, hit somebody with an OAR and then turn and run FAR. Where's my rimshot? But seriously folks...even if you are unfamiliar with any of the other extensions, you more than likely have encountered a file with a .jar extension or a discussion of JAR files.

Files with a .jar extension or JAR files, are essentially just a collection of files compressed using the ZIP/ZLIB compression format. JAR (short for Java Archive) files were introduced in the early days of Java as a means to conveniently package and distribute Java applications and components. Since then, a number of additions to the Java platform have followed suit. The introduction of the EAR file is one such addition.

An EAR (Enterprise Archive) file is a JAR file that contains a J2EE application. A J2EE application is a group of Web modules that collectively perform as a single entity. A Web Module is an entity consisting of one or more resources such as HTML files, Java class files, XML files, etc. Web Modules are packaged in Web Archive (WAR) files. Looking at it from a top-down view, EAR files contain JAR files and WAR files. Packaging resources in WAR files, JAR files and eventually EAR files, makes it easy to reuse and reassemble components as new J2EE applications and distribute them to new environments.

Tomcat is a servlet/JSP container available from the jakarta.apache.org site. Tomcat deals only with WAR files. So, in order to auto-deploy a Web application to a Tomcat environment, you must place an application's WAR file in the appropriate directory or use Tomcat's deployment tools to manually deploy the file. If you already have an EAR file that contains the WAR file, you can extract the WAR file and use it as is. If you do not have the EAR file or the WAR file, you can use any number of compliant tools to create the WAR file. The following sites discuss the Tomcat deployment process in detail:

Tomcat 3.x
Tomcat 4.x


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Java Web Services
Adobe Integrated Runtime (AIR) melds with ColdFusion - builds calendaring system for child services agency
Oracle re-brands BEA WebLogic as its strategic server for SOA
Ajax and Flex try to co-exist inside RIA development
BEA gives Oracle new Java platform, Eclipse tools
Where Ruby on Rails fits into SOA
Sun Java CAPS chugs down SOA open source track
JavaOne: JBoss on SOA middleware, Java EE and data services
Open source software requires governance, Burton warns
Deutsche Post delivers .NET in Java CRM thanks to SOA
Eclipse, Sun and Oracle team up on persistence API

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
Hadoop  (SearchSOA.com)
Java Card  (SearchSOA.com)
Java Development Kit  (SearchSOA.com)
Java Runtime Environment  (SearchSOA.com)
Java virtual machine  (SearchSOA.com)
JMX  (SearchSOA.com)
MBean  (SearchSOA.com)
Project Metro  (SearchSOA.com)
Project Tango  (SearchSOA.com)
Tomcat  (SearchSOA.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2001 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts