Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: some more editing

...

For example, the following web.xml and geronimo-web.xml are the deployment descriptor and geronimo Geronimo deployment plan respectively, of a web application that connects to a datasource deployed on DB2 and retrieves data from a table.

...

The above descriptor and the plan files are the simple illustrations that explain how web modules are developed and assembled for apache geronimoApache Geronimo. Similarly, many other configurations can be performed in the geronimo-web.xml.

...

The above descriptor and plan are the simple illustrations that explain how ejb modules are developed and assembled for apache geronimoApache Geronimo. Similarly, many other configurations can be performed in the openejb-jar.xml. The schema for the plan is openejb-jar-2.1.xsd

...

An enterprise application archive (ear) should provide its deployment descriptor in application.xml. The application.xml lists all the sub modules in the ear file along with the descriptions. Along with the deployment descriptor, deployer should also provide geronimo Geronimo specific deployment plan in geronimo-application.xml. Along with the description of each of the sub modules of the ear file, this file also provides mappings for JEE resources that each of the sub modules refers in their deployment descriptor. The geronimo-application.xml is divided into several sections where in each section, the deployment plan for a sub module is provided. The deployment plan borrows XML elements from all other schemas. It is the highest level plan that provides deployment plan for all sub modules; hence it can contain XML elements from every other geronimo Geronimo XML schema used by geronimo Geronimo application deployer. The geronimo-application.xml is the super set of all other deployment plans.

...

The above Order.ear file contains two modules. One is OrderWEB.war file which is a web module and the other is OrderEJB.jar file which is an ejb module. The META-INF folder of Order.ear file contains the application deployment descriptor (application.xml) and the geronimo Geronimo application deployment plan (geronimo-application.xml). The web application and the ejb application have packaged only their respective deployment descriptors. But the deployment plans for these modules are provided in the geronimo-application.xml.
The web application (OrderWAR.war) looks up stateless session bean in the OrderEJB.jar module to retrieve the order information. The RetrieveOrderInfoBean in OrderEJB.jar module uses JDBC connection to read the order information from a DB2 database.

...