29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.1 Enterprise application<br />

An enterprise application project contains the hierarchy of resources that are<br />

required to deploy an enterprise (J2EE) application. It can contain a combination<br />

of Web modules, EJB modules, JAR files, and application client modules. It<br />

includes a deployment descriptor and an <strong>IBM</strong> extension document, as well as<br />

files that are common to all J2EE modules that are defined in the deployment<br />

descriptor. It can contain a complete application that may be a combination of<br />

multiple modules. Enterprise applications make it easier to deploy and maintain<br />

code at the level of a complete application instead of as individual pieces.<br />

Enterprise <strong>Application</strong> projects are exported as enterprise archive (EAR) files<br />

that include all files defined in the enterprise application project as well as the<br />

appropriate module archive file for each J2EE module project defined in the<br />

deployment descriptor, such as Web archive (WAR) files and EJB JAR files.<br />

An enterprise application may contain JAR files to be used by the contained<br />

modules. This allows sharing of code at the application level by multiple Web or<br />

EJB modules.<br />

<strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> - Express does not support EJB modules, so the<br />

typical enterprise application built and deployed with <strong>WebSphere</strong> <strong>Application</strong><br />

<strong>Server</strong> - Express will consist primarily of Web modules and supporting JAR files.<br />

4.1.1 Enterprise application deployment descriptor<br />

The enterprise application deployment descriptor contains information about the<br />

components that make up the enterprise application. This deployment descriptor<br />

is called application.xml and is located under the META-INF directory.<br />

Figure 4-1 on page 59 shows the deployment descriptor for an enterprise<br />

application called OnlineCatalogEar. The enterprise application contains one<br />

Web module called OnlineCatalog.<br />

58 <strong>IBM</strong> <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> - Express V5.0.2 Developer Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!