Structure of a J2EE Enterprise Archive (EAR) file

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
  936 views

A J2EE application will be bundled in an EAR (Enterprise Archive) file for the deployment. The EAR file can contain different modules like Web Module, Resource Adapters, Client application modules and EJB modules. The structure of an EAR file is a follows.

EAR file
|
| – META-INF
- application.xml (The deployment descriptor of an EAR file).

| – Resource Adapters (xyz.rar)
- META-INF
- ra.xml (Deployment descriptor for resource adapters)
|
| – Client modules (xyz.jar)
- META-INF
- application-client.xml (Deployment descriptor for client modules)
|
| – EJB Modules (xyz.jar)
- META-INF
- ejb-jar.xml (EJB deployment descriptor)
|
| – WAR Modules (xyz.war)
WEB-INF
web.xml (Deployment descriptor of web module)

The EAR file may or may not contain one or more modules.

  • Share/Save/Bookmark

Most commented

Albin Joseph

I am Albin Joseph and I am working in technologies like Java, JEE and products like WebSphere Application Server, WebSphere Commerce Server, WebSphere Process Server developer and JBoss. I design, develop and architect software applications.

Leave a Reply