EAR (file format)

Enterprise Archive
Filename extension
.ear
Internet media typeapplication/java-archive
Developed bySun Microsystems
Type of formatfile archive, data compression
Extended fromJAR

EAR (Enterprise Application aRchive) is a file format used by Jakarta 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.

Ant, Maven, or Gradle can be used to build EAR files.

File structure

An EAR file is a standard JAR file (and therefore a Zip 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.

  • META-INF/
    • application.xml: This is the main deployment descriptor for the EAR. It lists all the modules included in the EAR and specifies configuration settings.
    • MANIFEST.MF: The manifest file that provides metadata about the archive.
  • JAR Files:
    • These files contain Enterprise JavaBeans (EJB) modules or utility classes. Each JAR file usually has its own META-INF directory with deployment descriptors specific to the JAR module.
  • WAR Files:
    • These files contain web modules, including servlets, JSP files, HTML files, and other web resources. Each WAR file typically has the following structure:
      • WEB-INF/
        • web.xml: The deployment descriptor for the web module.
        • classes/: Contains compiled Java classes.
        • lib/: Contains library JAR files used by the web module.
  • RAR Files:
    • These files contain resource adapters, typically used to connect to enterprise information systems (EIS).[1]

Module

Developers can embed various artifacts within an EAR file for deployment by application servers:

  • 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. Deployed entity beans become visible to other components and, if remotely exported, to remote clients. Message Beans and Session Beans are available for remote access.
  • A Resource Adapter module has a .rar extension.

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 behavior is to allow complete separation between applications which use static singletons (e.g. Log4J), which would otherwise confuse the configuration between separate applications. This also enables different versions of applications and libraries to be deployed side by side.

The JBoss application servers before Version 5 were 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 in version 4.0.3 it reverted to a Unified Classloader for backwards compatibility reasons. There is now a configuration option to change this behavior. JBoss 5.x, 6.x and 7.x no longer use Unified Classloading.

META-INF directory

The META-INF directory contains at least the application.xml deployment descriptor, known as the Java EE 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.

Next to the Jakarta EE deployment descriptor there can be zero or more runtime deployment descriptors. These are used to configure implementation-specific Jakarta EE parameters.

See also

Read other articles:

O-I

O-I Jenis Tank super berat Negara asal Kekaisaran Japan Sejarah produksi Tahun 1940 (100 ton O-I), 1943 (120 ton O-I) Diproduksi 1943 120 ton O-I[1] Jumlah produksi 1 prototype Spesifikasi Berat 120+ tons[2] Panjang 10 m[1] Lebar 4,2 m[1] Tinggi 4 m[1] Awak 11[2] Perisai maksimum 200 mm[1] Senjatautama Meriam 105 mm Type 92 L45 gun[3] Senjatapelengkap Meriam tank 47 mm Tipe 1 3 x 7,7 mm Senapan mesin Tipe 97[2]...

 

Puteri Indonesia Sulawesi TenggaraLogo Resmi Puteri IndonesiaSingkatanPuteri Indonesia SultraPI SultraDinamai berdasarkanPuteri Indonesia regionalTanggal pendirian1992; 32 tahun lalu (1992)Didirikan diJakarta, DKI Jakarta, IndonesiaTipeKontes kecantikan regionalKantor pusatKota Kendari, IndonesiaLokasi IndonesiaJumlah anggota Puteri IndonesiaBahasa resmi Bahasa IndonesiaBahasa InggrisPresiden dan CEO Puteri IndonesiaMooryati SoedibyoKetua Puteri IndonesiaPutri KuswisnuwardhaniSlogan...

 

Pemilihan umum Jepang 20092005201230 Agustus 2009← anggota terpilihanggota terpilih →Seluruh 480 kursi Dewan Perwakilan Jepang241 kursi untuk meraih status mayoritasKehadiran pemilih69.28%Kandidat   Partai pertama Partai kedua Partai ketiga   Ketua Yukio Hatoyama Tarō Asō Akihiro Ota Partai Demokratik Demokratik Liberal Partai Komeito Baru Kursi ketua Hokkaidō-9 Fukuoka-8 Tokyo-12(kalah) Pemilu sebelumnya 113 kursi36.44% (distrik)31.0% (blok) 296 ...

Cet article est une ébauche concernant la médecine. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Consultez la liste des tâches à accomplir en page de discussion. Détail d'une molaire humaine.1. Dent 2. Émail dentaire 3. Dentine 4. Pulpe dentaire 5. 6. 7. Cément 8. Couronne 9. 10. 11. Collet 12. Racines 13. 14. 15. 16. Sulcus gingivae17. Parodonte 18.Gencive 19. 20. 21. 22. Ligament alvéolo-dentaire 23...

 

Pour les articles homonymes, voir Retard. Si ce bandeau n'est plus pertinent, retirez-le. Cliquez ici pour en savoir plus. Cet article ne cite pas suffisamment ses sources (septembre 2007). Si vous disposez d'ouvrages ou d'articles de référence ou si vous connaissez des sites web de qualité traitant du thème abordé ici, merci de compléter l'article en donnant les références utiles à sa vérifiabilité et en les liant à la section « Notes et références ». En pratique&#...

 

Ini adalah nama Melayu; nama Zainudin merupakan patronimik, bukan nama keluarga, dan tokoh ini dipanggil menggunakan nama depannya, Hamzah. Kata bin (b.) atau binti (bt.), jika digunakan, berarti putra dari atau putri dari. Yang Berhormat Dato' SeriHamzah ZainudinSSAP SPMP SPDK DPTJ KMN APحمزة زين الدين Ketua Oposisi Malaysia ke-17PetahanaMulai menjabat 10 Desember 2022Penguasa monarkiAbdullahPerdana MenteriAnwar IbrahimPendahuluAnwar IbrahimPenggantiPetahanaMenteri Dalam ...

2AM

2AM투에이엠2AM di Korea Food Expo. Dari kiri ke kanan: Seulong, Changmin, Jo Kwon, Jinwoon.Informasi latar belakangAsalSeoul, Korea SelatanGenrePop, R&B, Ballad, SoulTahun aktif2008–sekarangLabelJYP EntertainmentAriola JapanUnited Asia ManagementArtis terkaitOne Day2PMJYP NationMiss ASitus webhttp://2am.jype.com http://2am.ibighit.comAnggotaJo KwonJinwoonSeulongChangmin 2AM (Bahasa Korea: 투에이엠) adalah sebuah boy band ballad beranggotakan empat orang dari Korea Selatan di baw...

 

Bloomberg Radio station in Watertown, Massachusetts This article is about the radio station in Watertown, Massachusetts. For other uses, including former holders of the WRCA call sign, see WRCA (disambiguation). WRCAWatertown, MassachusettsUnited StatesBroadcast areaGreater BostonFrequency1330 kHzBrandingBloomberg 106.1ProgrammingFormatFinancial newsAffiliationsBloomberg RadioNBC News RadioOwnershipOwnerBeasley Broadcast Group, Inc.(Beasley Media Group Licenses, LLC)Sister stationsWBOS, WBQT...

 

Family of marine fishes For other uses, see Wrasse (disambiguation). Wrasses Moon wrasse, Thalassoma lunare, a typical wrasse Scientific classification Domain: Eukaryota Kingdom: Animalia Phylum: Chordata Class: Actinopterygii Order: Labriformes Family: LabridaeG. Cuvier, 1816 Genera See text. The wrasses are a family, Labridae, of marine fish, many of which are brightly colored. The family is large and diverse, with over 600 species in 81 genera, which are divided into 9 subgroups or tribes....

San Venanzo kota kecilkomune di Italia Tempat Negara berdaulatItaliaRegion di ItaliaUmbraProvinsi di ItaliaProvinsi Terni NegaraItalia Ibu kotaSan Venanzo PendudukTotal2.177  (2023 )GeografiLuas wilayah169,45 km² [convert: unit tak dikenal]Ketinggian465 m Berbatasan denganFiculle Fratta Todina Marsciano Monte Castello di Vibio Montegabbione Orvieto Parrano Piegaro Todi Informasi tambahanKode pos05010 Zona waktuUTC+1 UTC+2 Kode telepon075 ID ISTAT055030 Kode kadaster ItaliaI381 Lain...

 

此条目序言章节没有充分总结全文内容要点。 (2019年3月21日)请考虑扩充序言,清晰概述条目所有重點。请在条目的讨论页讨论此问题。 哈萨克斯坦總統哈薩克總統旗現任Қасым-Жомарт Кемелұлы Тоқаев卡瑟姆若马尔特·托卡耶夫自2019年3月20日在任任期7年首任努尔苏丹·纳扎尔巴耶夫设立1990年4月24日(哈薩克蘇維埃社會主義共和國總統) 哈萨克斯坦 哈萨克斯坦政府...

 

1934 film by David Butler Handy AndyTheatrical release posterDirected byDavid ButlerWritten byLewis Beach (play)William M. Conselman (screenplay)Kubec Glasmon (screenplay)Henry Johnson (screenplay)Produced bySol M. WurtzelStarringWill RogersPeggy WoodMary CarlislePaul HarveyFrank MeltonRoger ImhofCinematographyArthur C. MillerMusic byDavid ButtolphProductioncompanyFox Film CorporationDistributed byFox Film CorporationRelease date July 27, 1934 (1934-07-27) Running time83 minute...

Stimulant drug of the amphetamine class 3-FluoroethamphetamineClinical dataATC codenoneLegal statusLegal status CA: Schedule I DE: NpSG (Industrial and scientific use only) UK: Class A Identifiers IUPAC name N-ethyl-1-(3-fluorophenyl)propan-2-amine CAS Number54982-43-3 YPubChem CID57458869ChemSpider27050449 NUNII7ZY9F4B6GTCompTox Dashboard (EPA)DTXSID201029433 Chemical and physical dataFormulaC11H16FNMolar mass181.254 g·mol−13D model (JSmol)Interactive image S...

 

Laws relating to the crime of rape Sex and the law Social issues Consent Reproductive rights Homophobia (Criminalization · Capital punishment) LGBT rights (Conversion therapy · Decriminalization · Civil union · Same-sex marriage · Adoption · Intersex · Transgender) Age of consent Marriageable age Pedophile advocacy Deviant sexual intercourse Miscegenation Norms Public morality Antisexualism Ethics Objectification Pornography Laws Prostitution law Red-light district Reproductive rights ...

 

Family of flowering plants SchisandraceaeTemporal range: Late Cretaceous - present[1] PreꞒ Ꞓ O S D C P T J K Pg N Possible Albian record Scientific classification Kingdom: Plantae Clade: Tracheophytes Clade: Angiosperms Order: Austrobaileyales Family: SchisandraceaeBlume[2] Genera Schisandra Kadsura Illicium Schisandraceae is a family of flowering plants with 3 known genera and a total of 92 known species.[3][4] Such a family has been recognized by most tax...

M320榴彈發射器 裝有可拆式槍托的獨立使用版M320类型榴彈發射器原产地 德国服役记录服役期间2009年—参与战争/衝突2001年阿富汗戰爭2022年俄羅斯入侵烏克蘭生产历史研发者黑克勒-科赫生产商黑克勒-科赫CAPCO生产日期2008年9月—基本规格重量空槍:1.27公斤(2.8磅)长度285毫米(11.22英寸)槍管长度215毫米(8.46英寸)操作人数1人子彈40×46毫米低速榴彈口徑40毫米(1.57英�...

 

This article's lead section may be too short to adequately summarize the key points. Please consider expanding the lead to provide an accessible overview of all important aspects of the article. (June 2022) 1928 postal stationery registered envelope uprated with stamp to pay the rate to Berlin This is an overview of the postage stamps and postal history of Australia. encompassing some history of the Australian colonies and the main stamp issues that followed the takeover of the colonies as w...

 

6th-century Bishop of Paris SaintGermain of ParisSaint Germain of Paris from a Book of Hours illuminated by Jean le Tavernier, c. 1450–1460.Bishop of Paris, Father of the PoorBornc. 496near Autun, Kingdom of the Burgundians (now France)Died28 May 576 (aged 79-80)Paris, Kingdom of the Franks (now France)Feast28 May Germain (Latin: Germanus; c. 496 – 28 May 576) was the bishop of Paris and is venerated as a saint in both the Catholic Church and the Eastern Orthodox Church. According to an e...

Criminology and penology Theory Anomie Biosocial criminology Broken windows Collective efficacy Crime analysis Criminalization Differential association Deviance Expressive function of law Labeling theory Psychopathy Rational choice Risk & actuarial criminology Social control Social learning Strain Subculture Symbolic interactionism Victimology Major theorists Émile Durkheim Hans Eysenck Enrico Ferri Michel Foucault Alexandre Lacassagne Cesare Lombroso Archibald Reiss Types of crime Again...

 

Argentine scientist (1880–1961) This article includes a list of general references, but it lacks sufficient corresponding inline citations. Please help to improve this article by introducing more precise citations. (January 2013) (Learn how and when to remove this message) José María SobralBorn(1880-04-14)April 14, 1880Gualeguaychú, ArgentinaDiedApril 14, 1961(1961-04-14) (aged 81)Buenos Aires, ArgentinaAlma materUppsala UniversityAwardsDavid Livingstone Centenary Medal Alfére...