Versions Compared

Key

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

...

Code Block
xml
xml
borderStylesolid
title<container-config> Example
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"
         xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2"
         xmlns:naming="http://geronimo.apache.org/schemas-2.1/docs/geronimo-naming-1.2">

    <sys:environment>
        <sys:moduleId>
            <sys:groupId>default</sys:groupId>
            <sys:artifactId>geronimo-web-6</sys:artifactId>
            <sys:version>1.0</sys:version>
            <sys:type>car</sys:type>
        </sys:moduleId>
    </sys:environment> 

    <naming:abstract-naming-entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="naming:persistence-unit-refType">

        <naming:persistence-unit-ref-name>messagedrivenbean-persistenceunitref-unitrefname</naming:persistence-unit-ref-name>
        <naming:persistence-unit-name>messagedrivenbean-persistenceunitref-unitname</naming:persistence-unit-name>

    </naming:abstract-naming-entry>


</web-app>

<naming:message-destination>

<security-realm-name>

The <security-realm-name> The <naming:message-destination> XML element uses the Geronimo Naming namespace, which is used to identify the common elements
for resolving EJB references, resource references, and Web services references, default namespace for the geronimo-web.xml file, which is documented here:

The <naming:message-destination> <security-realm-name> element is used to configure a JMS queue or topic which acts like a destination for the messages delivered.

<security-realm-name>

The <security-realm-name> XML element uses the Geronimo default namespace for the geronimo-web.xml file, which is documented here:

The <security-realm-name> element is used to specify the name of the security realm that will be used for user authentication.

specify the name of the security realm that will be used for user authentication.

<app:<app:security>

The <app:security> XML element uses the Geronimo Applicaiton namespace, which is documented here:

...

More information and details about JNDI references can be found here: JNDI.

<naming:ejb-ref>

The <naming:ejb-ref> element uses the Geronimo Naming namespace, which is used to identify the common elements for resolving EJB references, resource references, and Web services references, which is documented here:

The <naming:ejb-ref> element is used to map EJB references to EJB's in other applications using remote home and remote interface. The application which contains the EJB being referenced should either be in same EAR or should be included in dependency list of this application. Also note as the EJB's referenced are in a different JVM all the client interfaces should also be included in the current application.

<naming:ejb-local-ref>

The <naming:ejb-local-ref> XML element uses the Geronimo Naming namespace, which is used to identify the common elements for
resolving EJB references, resource references, and Web services references, which is documented here:

The <naming:ejb-local-ref> element is used to map EJB references to EJB's in other applications using remote local home and remote local interface. The application which contains the EJB being referenced should either be in same EAR or should be included in dependency list of this application. Also note as the EJB's referenced are in a different JVM all the client interfaces should also be included in the current application.

<naming:

...

service-ref>

The <naming:ejb-localservice-ref> XML element uses the Geronimo Naming namespace, which is used to identify the common elements for
resolving EJB references, resource references, and Web services references, which is documented here:

The <naming:ejb-localservice-ref> element is used to map EJB service references to EJBservice's in other applications using local home and local interface. The application which contains the EJB being referenced should either be in same EAR or should be included in dependency list of this application. Also note as the EJB's referenced are in a different JVM all the client interfaces should also be included in the current application.

<naming:

...

resource-ref>

The <naming:serviceresource-ref> XML element uses the Geronimo Naming namespace, which is used to identify the common elements for
resolving EJB references, resource references, and Web services references, which is documented here:

The <naming:serviceresource-ref> element is used to map service resource references to service's in other applications. The application which contains the EJB being referenced should either be in same EAR or should be included in dependency list of this resources's like JDBC resources, JMS resources, etc. configured outside the current application.

<naming:resource-env-ref>

The <naming:resource-env-ref> XML element uses the Geronimo Naming namespace, which is used to identify the common elements for
resolving EJB references, resource references, and Web services references, which is documented here:

The <naming:resource-env-ref> element is used to map resource references to resources's like JDBC resources, JMS resources, etc. configured outside the current application.administrative objects deployed as a part of connectors.

<naming:

...

message-

...

destination>

The <naming:resourcemessage-env-ref>destination> XML element uses the Geronimo Naming namespace, which is used to identify the common elements
for
resolving EJB references, resource references, and Web services references, which is documented here:

The <naming:resourcemessage-env-ref>destination> element is used to map resource references to administrative objects deployed as a part of connectorsconfigure a JMS queue or topic which acts like a destination for the messages delivered.

Samples

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

...