FACTOID # 171: Want to go to the United States? Try going to Albania first. Albania has more U.S visa lottery winners per capita than anywhere else in the world.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

SEARCH ALL

FACTS & STATISTICS    Advanced view

Search encyclopedia, statistics and forums:

 

 

(* = Graphable)

 

 


Encyclopedia > EAR (file format)

An Enterprise ARchive, or EAR, is a file format used by Java EE for packaging one or more modules into a single archive so that the deployment of the various modules onto an application server happens simultaneously and coherently. It also contains XML files called deployment descriptors which describe how to deploy the modules on an Java 2 Platform, Enterprise Edition or Java EE (formerly also J2EE) is a programming platform — part of the Java platform — for developing and running distributed multi-tier architecture applications, based largely on modular components running on an application server. ... A J2EE application or a Java 2 Platform Enterprise Edition application is any deployable unit of J2EE functionality. ... An application server is a software engine that delivers applications to client computers or devices, typically through the internet and using the http protocol. ... The Extensible Markup Language (XML) is a general-purpose markup language. ...

Contents

File Structure

An EAR file is a standard JAR file with an .ear extension, with one or more entries representing the modules of the application, and a metadata directory called META-INF which contains one or more deployment descriptors. In computing, a JAR file (or Java ARchive) file used to distribute a set of Java classes. ...


Modules

Different artifacts can be embedded within an EAR file, artifacts which are deployed by the application server:

  • A Web module has a .war extension. It is a deployable unit that consists of one or more web components, other resources, and a web application deployment descriptor. The web module is contained in a hierarchy of directories and files in a standard web application format.
  • POJO Java classes may be deployed in .jar files.
  • An Enterprise Java Bean module has a .jar extension, and contains in its own META-INF directory descriptors describing the persistent classes deployed. When deployed, entity beans are visible to other components and (if remotely exported), remote clients. Message Beans and Session Beans are available for remote access.
  • A Resource Adapter module has a .rar extension

Vendors may support extra artifacts, with their own extensions. In computing, a WAR file (short for Web ARchive) may refer to: Sun WAR (file format), a JAR file used to distribute a collection of JavaServer Pages, servlets, Java classes, XML files, tag libraries and static Web pages (HTML and related files) that together constitute a Web application. ... In software engineering, a web application is an application delivered to users from a web server over a network such as the World Wide Web or an intranet. ... A hierarchy (in Greek: , derived from — hieros, sacred, and — arkho, rule) is a system of ranking and organizing things or people, where each element of the system (except for the top element) is a subordinate to a single other element. ... Depending on the context Pojo refers to the Swedish name for the Finish municipality Pohja in computer science, an acronym for Plain Old Java Object. ... In computing, a Jar file (short for Java ARchive) is a ZIP file used to distribute a set of Java classes. ... The Enterprise Java Beans specification is one of the several Java APIs in the Java 2 Platform, Enterprise Edition. ... In computing, a Jar file (short for Java ARchive) is a ZIP file used to distribute a set of Java classes. ... The Enterprise JavaBeans specification is one of the several Java APIs in the Java 2 Platform, Enterprise Edition. ... A Resource Adapter is an archive file format defined in the J2EE Connector Architecture specification. ... A vendor is one who sells something. ...


Class isolation

Most application servers load classes from a deployed EAR file as an isolated tree of java classloaders, isolating the application from other applications, but sharing classes between deployed modules. For example, a deployed WAR file would be able to create instances of classes defined in a JAR file that was also included in the containing EAR file, but not necessarily those in JAR files in other EAR files. One key reason for this behaviour is to allow complete separation between applications which use static singletons (e.g. Log4J), which would otherwise mess-up the configuration between separate applications. This also enables different versions of applications and libraries to be deployed side-by-side. The Java Classloader is a part of the Java Runtime Environment that dynamically loads Java classes into the Java Virtual Machine. ...


The JBoss application server is notable in that it does not isolate deployed components. A web application deployed in one EAR file would have access to classes in other EAR and WAR files. This is a somewhat controversial policy. The Unified Classloader design reduces communications overhead between running applications, as class data can be shared by reference or simple copies. It also allows developers to avoid having to understand the problems that a tree of classloaders can create. However, it prevents different versions of dependent libraries from being deployed in separate applications. JBoss 4.0.2 switched to a hierarchical classloader, but as of version 4.0.3, it has reverted to a Unified Classloader for backwards compatibility reasons. There is now a configuration option to change this behavior. JBoss (pronounced Jay Boss) is an open source Java EE-based application server implemented in Java. ...


META-INF directory

The META-INF directory contains at least the application.xml deployment descriptor, known as the J2EE Deployment Descriptor. It contains the following XML entities:

  • icon, which specifies the locations for the images that represent the application. A subdivision is made for small-icon and large-icon.
  • display-name, which identifies the application
  • description
  • A module element for each module in the archive
  • Zero or more security-role elements for the global security roles in the application

Each module element contains an ejb, web or java element which describes the individual modules within the application. Web modules also provide a context-root which identifies the web module by its URL. A Web module is a deployable unit that consists of one or more web components, other resources, and a web application deployment descriptor. ...


Next to the J2EE deployment descriptor one can have zero or more runtime deployment descriptors. These are used to configure implementation-specific J2EE parameters.


See also

In computing, a WAR file (short for Web Application Archive) is a ZIP file used to distribute a set of Java classes. ... In computing, a JAR file (or Java ARchive) file used to distribute a set of Java classes. ... JAR Hell usually occurs when a class file located in a JAR file can not be found or an older version from another JAR file is loaded. ...

Resources

  • http://java.sun.com/j2ee/1.4/docs/glossary.html
  • http://searchsoa.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid26_gci837938,00.html


 
 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments

Want to know more?
Search encyclopedia, statistics and forums:

 


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms, 1022, m