background image

Development Roles

<< Packaging Applications | Java EE Product Provider >>
<< Packaging Applications | Java EE Product Provider >>

Development Roles

such as the context root of a web application, the mapping of portable names of an application's
resources to the server's resources, and Application Server implementation-specific parameters,
such as caching directives. The Application Server runtime deployment descriptors are named
sun-
moduleType.xml and are located in the same META-INF directory as the Java EE
deployment descriptor.
A Java EE module consists of one or more Java EE components for the same container type and
one component deployment descriptor of that type. An enterprise bean module deployment
descriptor, for example, declares transaction attributes and security authorizations for an
enterprise bean. A Java EE module without an application deployment descriptor can be
deployed as a stand-alone module.
The four types of Java EE modules are as follows:
EJB modules, which contain class files for enterprise beans and an EJB deployment
descriptor. EJB modules are packaged as JAR files with a .jar extension.
Web modules, which contain servlet class files, JSP files, supporting class files, GIF and
HTML files, and a web application deployment descriptor. Web modules are packaged as
JAR files with a .war (Web ARchive) extension.
Application client modules, which contain class files and an application client deployment
descriptor. Application client modules are packaged as JAR files with a .jar extension.
Resource adapter modules, which contain all Java interfaces, classes, native libraries, and
other documentation, along with the resource adapter deployment descriptor. Together,
these implement the Connector architecture (see
"J2EE Connector Architecture" on
page 61
) for a particular EIS. Resource adapter modules are packaged as JAR files with an
.rar
(resource adapter archive) extension.
Development Roles
Reusable modules make it possible to divide the application development and deployment
process into distinct roles so that different people or companies can perform different parts of
the process.
The first two roles involve purchasing and installing the Java EE product and tools. After
software is purchased and installed, Java EE components can be developed by application
component providers, assembled by application assemblers, and deployed by application
deployers. In a large organization, each of these roles might be executed by different individuals
or teams. This division of labor works because each of the earlier roles outputs a portable file
that is the input for a subsequent role. For example, in the application component development
phase, an enterprise bean software developer delivers EJB JAR files. In the application assembly
role, another developer combines these EJB JAR files into a Java EE application and saves it in
an EAR file. In the application deployment role, a system administrator at the customer site uses
the EAR file to install the Java EE application into a Java EE server.
Development Roles
The Java EE 5 Tutorial · September 2007
54