Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-13543

[7.0] Wrong Example: META-INF/jboss-all.xml in 3.7.4. of JBoss EAP 7.0 Development Guide

XMLWordPrintable

      • Book: Red Hat JBoss Enterprise Application Platform 7.0 Development Guide
      • Issue description:
        There is an "Example: META-INF/jboss-all.xml" in 3.7.4. Configuring Session Sharing between Subdeployments in Enterprise Archives. If we deploy with it XML structure on EAP 7.0, it will fail with errors. You can refer https://issues.jboss.org/browse/JBEAP-13098.
        The example XML structure does not valid against the XML schema, shared-session-config_1_0.xsd.
        <jboss umlns="urn:jboss:1.0">
          <shared-session-config xmlns="urn:jboss:shared-session-config:1.0">
            <max-active-sessions>10</max-active-sessions>
            <session-config>
              <session-timeout>0</session-timeout>
              <cookie-config>
                <name>JSESSIONID</name>
                <domain>domainName</domain>
                <path>/cookiePath</path>
                <comment>cookie comment</comment>
                <http-only>true</http-only>
                <secure>true</secure>
                <max-age>-1</max-age>
              </cookie-config>
            </session-config>
            <tracking-mode>COOKIE</tracking-mode>
          </shared-session-config>
          <replication-config>
            <cache-name>web</cache-name>
            <replication-granularity>SESSION</replication-granularity>
          </replication-config>
        </jboss>
        
      • Suggestion for improvement:
        It should be fixed as below structure:
        <jboss umlns="urn:jboss:1.0">
            <shared-session-config xmlns="urn:jboss:shared-session-config:1.0">
                <max-active-sessions>10</max-active-sessions>
                <session-config>
                    <session-timeout>0</session-timeout>
                    <cookie-config>
                        <name>JSESSIONID</name>
                        <domain>domainName</domain>
                        <path>/cookiePath</path>
                        <comment>cookie comment</comment>
                        <http-only>true</http-only>
                        <secure>true</secure>
                        <max-age>-1</max-age>
                    </cookie-config>
                    <tracking-mode>COOKIE</tracking-mode>
                </session-config>
                <replication-config>
                    <cache-name>web</cache-name>
                    <replication-granularity>SESSION</replication-granularity>
                </replication-config>
            </shared-session-config>
        </jboss>
        

            rhn-engineering-nchaudha Nidhi Chaudhary
            rhn-support-jwon Ted Won
            Jan Stourac Jan Stourac
            Jan Stourac Jan Stourac
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: