Versions Compared

Key

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

...

  • standard deployment descriptor, i.e. web.xml: the Web application must be marked as distributable. In other words, the optional "distributable" element must be defined:
    Code Block
    <web-app>
    .....
        <distributable/>
    .....
    </web-app>
    
  • Geronimo deployment descriptor, i.e. geronimo-web.xml: if you are deploying the application to embedded Jetty, then the "clustering-wadi" substitution group must be defined. If you are deploying to embedded Tomcat, then you should use the "tomcat-clustering-wadi" substitution group. These substitution groups are defined by the XSDs geronimo-clustering-wadi-X.xsd and geronimo-tomcat-clustering-wadi-X.xsd respectively which are included in the schema folder of a Geronimo server installation.
    Both of these elements provide a Web application specific clustering configuration, which overrides the default clustering configuration. This default clustering configuration is defined by the GBean WADIJettyClusteringBuilder declared by org.apache.geronimo.configs/jetty6-clustering-builder-wadi//car.
    Here is an example Geronimo deployment descriptor targeted at Jetty embedded:
    Code Block
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web/jetty-1.2">
    
        <environment>
            <moduleId>
                <groupId>yourGroupId</groupId>
                <artifactId>yourArtifactId</artifactId>
                <version>YourVersion</version>
                <type>war</type>
            </moduleId>
        </environment>
    
       <context-root>/yourPath</context-root>
    
       <clustering-wadi />
    
    </web-app>
    
Note

If you are using a Tomcat assembly of Geronimo distribution, replace <clustering-wadi/> with <tomcat-clustering-wadi/> element in the deployment plan.

Jetty Web-application Clustering Configurations

...