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:naming="http://geronimo.apache.org/xml/ns/naming-1.2"
         xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-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:dependencies>
            <sys:dependency>
                <sys:groupId>org.apache.geronimo.configs</sys:groupId>
                <sys:artifactId>tomcat6</sys:artifactId>
                <sys:version>2.2-SNAPSHOT</sys:version>
                <sys:type>car</sys:type>
            </sys:dependency>

            <sys:dependency>
                <sys:groupId>default</sys:groupId>
                <sys:artifactId>geronimo-web-5</sys:artifactId>
                <sys:version>1.0</sys:version>
                <sys:type>car</sys:type>
            </sys:dependency>

            <sys:dependency>
                <sys:groupId>default</sys:groupId>
                <sys:artifactId>geronimo-web-4</sys:artifactId>
                <sys:version>1.0</sys:version>
                <sys:type>car</sys:type>
            </sys:dependency>

        </sys:dependencies>

        <sys:hidden-classes/>
        <sys:non-overridable-classes/>
        <sys:inverse-classloading/>
        <sys:suppress-default-environment/>

    </sys:environment> 

    <context-root>contextroot</web:context-root>

    <work-dir>workdir</web:work-dir>   

    <naming:web-container>
        <naming:pattern>
            <naming:groupId>gbeanlocator-pattern-groupid</naming:groupId>
            <naming:artifactId>gbeanlocator-pattern-artifactid</naming:artifactId>
            <naming:version>gbeanlocator-pattern-version</naming:version>
            <naming:module>gbeanlocator-pattern-module</naming:module>
            <naming:name>gbeanlocator-pattern-name</naming:name>
        </naming:pattern>
        <naming:gbean-link>gbeanlocator-gbeanlink</naming:gbean-link>
    </naming:web-container>

    <container-config>
        <tomcat xmlns="http://geronimo.apache.org/xml/ns/web/tomcat/config-1.0">
            <host>testhost.com</host>
            <valve-chain>FirstValve</valve-chain>
            <tomcat-realm>TomcatRealm</tomcat-realm>
        </tomcat>
    </container-config>


</web-app>

<naming:abstract-naming-entry>

The <naming:abstract-naming-entry> uses the Geronimo naming namespace described at http://geronimo.apache.org/schemas-2.1/docs/geronimo-naming-1.2.xsd.html. It is used to specify

...

an abstract element used as a generic element for multiple reference types.

<naming:ejb-ref>

The <ejb<naming:ejb-ref> uses the Geronimo default namespace for a geronimo-web.xml file that is naming namespace described at 'The element ejb-ref http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1Image Removed. This element is used for the configuration of elements schemas-2.1/docs/geronimo-naming-1.2.xsd.htmlImage Added. It 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 current application.'

...

<naming:ejb-local-ref>

The <ejb<naming:ejb-local-ref> uses the Geronimo default namespace for a geronimo-web.xml file that is naming namespace described at 'The element ejb-local-ref http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1Image Removed. This element is used for the configuration of elements schemas-2.1/docs/geronimo-naming-1.2.xsd.htmlImage Added. It is used to map EJB references to EJB\'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 current application.'

...

<naming:service-ref>

The <service<naming:service-ref> uses the Geronimo default namespace for a geronimo-web.xml file that is naming namespace described at http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1Image Removed. This element is used for the configuration of elements The schemas-2.1/docs/geronimo-naming-1.2.xsd.htmlImage Added. It is used to map service 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 application.

<naming:resource-ref>

The <naming:resource<service-ref> uses the Geronimo default namespace for a geronimo-web.xml file that is naming namespace described at http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1Image Removed. This element is used for the configuration of elements 'The element service-ref schemas-2.1/docs/geronimo-naming-1.2.xsd.htmlImage Added. It 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 application.'

<resource-ref>

resources's like JDBC resources, JMS resources, etc. configured outside the current application.

<naming:resource-env-ref>

The <naming:resource-envThe <service-ref> uses the Geronimo default namespace for a geronimo-web.xml file that is naming namespace described at http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1Image Removed. This element is used for the configuration of elementsThschemas-2.1/docs/geronimo-naming-1.2.xsd.htmlImage Added. It is used to map resource references to administrative objects deployed as a part of connectors.

<naming:message-destination>

The <naming:message-destination> uses the Geronimo naming namespace described at http://geronimo.apache.org/schemas-2.1/docs/geronimo-naming-1.2.xsd.htmlImage Added. It 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/ns/j2ee/web-2.0.1. This element is used for the configuration of elementse <resource-ref> uses the Geronimo default namespace for a geronimo-web.xml file that is described at http
The <context-root> uses the default namespaced described at
'The element resource-ref is used to map resource references to resources\'s like JDBC resources, JMS resources, etc. configured outside the current application.'

<resource-env-ref>

The <service-ref> uses the Geronimo default namespace for a geronimo-web.xml file that is described at http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1Image Removed. This element is used for the configuration of elements

The <context-root> uses the default namespaced described at
'The element resource-env-ref is used to map resource references to administrative objects deployed as a part of connectors.'

<naming:message-destination>

The <context-root> uses the default namespaced described at

References a message-destination (such as JMS queues), which is used within the deployed WAR file.

<security-realm-name>

The <context-root> uses the default namespaced described at

Specifies the ://geronimo.apache.org/xml/ns/j2ee/web-2.0.1Image Added. It is used to specify the name of the security realm that will be used for user authentication.

<app:security>

The <context-root> <app:security> uses the default namespaced described at Configures the security role mappings that will be used when deploying the module. Maps Geronimo applicaiton namespace described at http://geronimo.apache.org/schemas-2.1/docs/geronimo-application-2.0.xsd.htmlImage Added. It is used to maps roles specified in the WAR file to roles or principals in the security realm that will be used when deploying the module.

<sys:service>

The <context-root> <sys:service> element uses the default namespaced described at 'Reference to abstract service element defined in imported \"Geronimo deployment namespace described at http://geronimo.apache.org/schemas-2.1/docs/geronimo-module-1.2.xsd\"'.htmlImage Added. It is an empty generic element to be extended by GBean and other module types.

<ee:persistence>

The <context-root> <ee:persistence> element uses the default namespaced persistence namespace described at default namespace is http://java.sun.com/xml/ns/javaeeImage Removed. The XML elements that do not have a namespace prefix belong to the default namespacepersistence/Image Added. Apache Geronimo uses OpenJPA for providing Java Persistence API to Java EE applications deployed in the server.

Samples