uCosminexus Application Server, Application Development Guide

[Contents][Glossary][Index][Back][Next]

1.4.2 J2EE applications in archive format

This subsection describes the configuration of J2EE applications in the archive format.

Organization of this subsection
(1) Overview of J2EE application in archive format
(2) Configuration of J2EE applications in archive format

(1) Overview of J2EE application in archive format

A J2EE application in archive format stores the J2EE application entities, such as EJB and servlets, in the J2EE server work directory.

The following figure shows an overview of J2EE applications in the archive format.

Figure 1-8 Overview of J2EE applications in archive format

[Figure]

To execute a J2EE application in the archive format, you archive the created programs in an EJB-JAR file and a WAR file, archive the EJB-JAR file and the WAR file in an EAR file, and then deploy the application to the J2EE server.

If a program is revised, you redeploy the J2EE application after re-executing the archive and deployment operations. Note that if you use the redeploy functionality, you can redeploy the J2EE application after inheriting all the property information of that J2EE application.

(2) Configuration of J2EE applications in archive format

With the archive format, you create the J2EE application as an EAR file and include the WAR file and EJB-JAR file in the EAR file. This section describes the configuration of J2EE applications deployed in the archive format.

The following figure shows an example of an EAR file configuration.

Figure 1-9 Example of an EAR file configuration

[Figure]

The WAR files and EJB-JAR files are configured in the EAR file as described below.

Note that you can also use JavaBeans to implement Enterprise Bean. In this case, an EJB-JAR file will not be created.