Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Anchortoptop

The Geronimo deployment plan for an enterprise application is an XML document. It is defined by the geronimo-application-1.1.xsd schema, which can be found in the schema/ subdirectory of the main Geronimo installation directory. The deployment plan for an enterprise application can be included in the application EAR, in which case it should be named META-INF/geronimo-application.xml or saved as a separate file and provided to the deploy tool when the application is deployed

The deployment plan should always use the Geronimo Application namespace. Additionally, it has a required attribute to
identify its configuration name, and an optional attribute to select a parent configuration. A typical enterprise application deployment plan looks like this:1.

This article is organized into the following sections : -

  • #1.0 Creating an Enterprise Application EAR

      ...

      ...

      ...

      ...

      ...

      ...

      ...

      ...

      • #4.0 Structure of the Deployment Plan

          ...

          ...

          ...

          ...

          Warning

          1.0 Creating an Enterprise Application EAR

          1.1 application.xml Format

          2.0 The

          ...

          Enterprise Application Geronimo Deployment Plan Overview

          There is a specific internal structure for the Enterprise Application deployment plan for Geronimo and follow a specific structure and order of elements.

          ...

          META-INF/geronimo-application.xml

          ...

          ...

          The attributes are defined below

          xmlns The main namespace for the deployment plan, which should always be http://geronimo.apache.org/xml/ns/j2ee/application-1.1Image Removed

          xmlns:sys A secondary namespace, used to identify the common elements for third-party libraries and custom services. If present, this should always be set to http://geronimo.apache.org/xml/ns/deployment-1.1Image Removed

          xmlns:security A secondary namespace, used to identify the common elements for security role settings. If present, this should always be set to http://geronimo.apache.org/xml/ns/security-1.1Image Removed

          2.Class Path Settings for Enterprise Application Deployment Plan

          import Refers to another configuration deployed in the server. That configuration will be added as a parent of this one (a configuration may have more than one parent). The main effect is that the class loader for the application will add the class loader for that configuration as a parent. Additionally, the parent configuration will be started before the application is started.

          ...

          filter Used to list classes or packages. The format is a comma-separated list of packages or fully-qualified class names (for example: javax.servlet,javax.ejb).

          3.Specifying Imports and Dependencies in Class Path setting.

          moduleId A unique name identifying this module. This name can be passed on the server command line to activate this application when the server starts.

          ...

          inverseClassloading If it's set to true, the class loader for this application tries to load a class before checking whether the class is available from its parent class loader. If omitted or set to false, the normal (check parent first) class loader delegation behavior is used .

          3.Configuring Application Modules

          The J2EE deployment descriptor (META-INF/application.xml) lists the modules in the application and gives some basic options for each, including:

          ...

          Any Module The module's entire Geronimo deployment plan may be embedded in the EAR deployment plan at this location. It should use the same elements and namespaces as normal. Note that this is commonly used by JSR-88 deployment tools (which must save a single deployment plan for the application and all its modules), but is used less frequently for handcrafted deployment plans.

          3.0 Work out Geronimo Deployment plan

          This section will be discussed the details of how Geronimo deployment plan for EAR has implemented for different type of applications accordingly.The Sample Application section of the Geronimo user guide has been heavily used to discusses the deployment plan in depth.

          3.1.1 HelloWord EAR application

          The article deployment plan level-1 gives an primary understand to the user in basics of Geronimo v1.1 specific deployment plan for an EAR and go head to work with complex applications.Further details about application can be find the original location as at http://cwiki.apache.org/GMOxDOC11/deployment-plans-level-1.html.ThereforeImage Removed here are deployment plans used in this sample application.

          Geronimo requires that every EAR file has a standard META-INF/application.xml deployment descriptor. This may be configured for J2EE 1.2, J2EE 1.3, or J2EE 1.4, and should follow the appropriate XML format and following is the application.xml for the above application.

          ...

          ...

          This deployment plan define the war module in <web><web-uri>helloworld.war<web-uri> and the root context of it.The geronimo-application.xml is the geronimo specific plan for above application.

          ...

          ...

          3.2 Sample Code for the Configuring modules*

          This sample has been taken from the user guide, Sample application.http://cwiki.apache.org/GMOxDOC11/jms-and-mdb-sample-application.html.ThisImage Removed is a sample deployment plan for A context root for web application module with a ejb application.

          ...

          In this case, the EJB deployment plan is stored inside the EAR and it is compressed with Order.jar inside META-INF/openejb.xml and ejb-jar.xml . The Web application deployment plan is actually right there inside the EAR deployment plan,compressed with Orderweb.war/WEB-INF/web.xml and geronimo-web.xml.Also the EAR deployment plans both are directly stored right in side the Order.ear/META-INF/application.xml and geronimo-application.xml

          ...

          ...

          3.3 Sample code for Adding a new module

          This sample application uses a connector module in the deployment plan itself.This sample code for geronimo-application and the application.xml has been excerpt from user guide, sample application located at http://cwiki.apache.org/GMOxDOC11/ejb-sample-application.htmlImage Removed

          Therefore addition to configuring modules listed in application.xml, the Geronimo plan can add references to new modules, either in the EAR or located in the Geronimo repository.

          ...

          geronimo-application.xml and application.xml define the main components of the EAR. Both EJB component and Web archive information are given in these files. Additionally, these two XML files define application scoped database connection pool with tranql-connector-1.2.rar and BankPool.xml.

          ...

          Any Other
          If the Geronimo deployment plan for the module is not packaged in the module, it must be included here.

          4. Conclusion

          This simply gives a overview of EAR deployment plans for Geronimo.But it's nice to cover areas such as "Application-Wide Security Mapping" or type mapping which is not covered here.Your contribution to improve this document is grealty appreciated.