To configure the Oracle Commerce Platform servers to use Coherence*Web:

  1. Go to the WEB-INF directory of the request-handling WAR file in each production EAR file. For example:

    <ORACLE_HOME>\user_projects\domains\commerce_domain\servers\atg_production
    \stage\atg_production.ear\atg_production.ear\store.war\WEB-INF

  2. Edit the web.xml file. Add the following:

    <context-param>
      <param-name>coherence-application-name</param-name>
      <param-value>atg_production</param-value>
    </context-param>
    <context-param>
      <param-name>coherence-preserve-attributes</param-name>
      <param-value>true</param-value>
    </context-param>
    <context-param>
      <param-name>coherence-cache-delegator-class</param-name>
      <param-value>
        com.tangosol.coherence.servlet.LocalSessionCacheDelegator
      </param-value>
    </context-param>
    <context-param>
      <param-name>coherence-distributioncontroller-class</param-name>
      <param-value>
        com.tangosol.coherence.servlet.
          AbstractHttpSessionCollection$HybridController
      </param-value>
    </context-param>
    <context-param>
      <param-name>sticky-session-optimization</param-name>
      <param-value>true</param-value>
    </context-param>

  3. In the same directory, edit the weblogic.xml file. Add the following:

    <container-descriptor>
      <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    <session-descriptor>
      <persistent-store-type>coherence-web</persistent-store-type>
    </session-descriptor>

  4. In the same directory, create a classes subdirectory. Copy the Coherence*Web session-cache-config.xml file you created above and place the copy in this subdirectory. For example:

    <ORACLE_HOME>\user_projects\domains\commerce_domain\servers\atg_production
    \stage\atg_production.ear\atg_production.ear\store.war\WEB-INF\classes
    \session-cache-config.xml

  5. Go to the META-INF directory of each production EAR file. For example:

    <ORACLE_HOME>\user_projects\domains\commerce_domain\servers\atg_production
    \stage\atg_production.ear\atg_production.ear\META-INF

  6. Edit the weblogic-application.xml file. Add the following:

    <library-ref>
      <library-name>coherence-web</library-name>
      <specification-version>12.1.2.0.1</specification-version>
      <implementation-version>12.1.2.0.1</implementation-version>
      <exact-match>false</exact-match>
    </library-ref>

  7. Using the WebLogic Server Console, deploy the following files to the WebLogic instances that are running Oracle Commerce Platform servers:

    <ORACLE_HOME>\coherence\lib\coherence-web.jar
    <ORACLE_HOME>\wlserver\common\deployable-libraries\active-cache-1.0.jar


Copyright © 1997, 2015 Oracle and/or its affiliates. All rights reserved. Legal Notices