Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Please observe the different namespace prefixes and corresponding namespaces used to configure dependencies and resource mapping. Also observe how the Datasource name 'jdbc/DataSource' in web.xml is mapped to 'jdbc/EmployeeDatasource' in geronimo-web.xml. The 'jdbc/EmployeeDatasource' is the name of the Datasource (database connection pool) deployed on the server for connecting to back end DB2 database.

The deployment plan starts with <sys:moduleId> to provide a unique module id configuration for the web application. In dependencies section, using <sys:dependency>, a dependency on "samples/EmployeeDatasource/2.1/rar" is configured. This is the module id of Datasource that connects to DB2. The web context root is configured by <context-root>. Since there is no namespace prefix for this tag, it is going to be the default namespace http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1. The datasource name "jdbc/Datasource" is mapped to "SystemDatasource" using <naming:resource-ref>.

All the XML schema files are located at <GERONIMO_HOME>/schema directory. <GERONIMO_HOME> is the location where Geronimo is installed.  Please go through the XSD files to have a feel of XML tags that can be used in Geronimogeronimo-web.xml for configuring web applications.

...