Thursday, November 5, 2015

Integrating Coherence with ATG

Follow the steps to integrate Coherence with ATG.

1. Configure the coherence cache type you want to use. In this case using distributed cache.
/atg/adapter/gsa/externalcache/GSACoherenceManager.properties
defaultCacheNamePrefix=dist-cache

2. Configure the repository to use Coherence external cache
/atg/commerce/catalog/ProductCatalog.properties
cacheLocality=external

3. Modify the customCatalog.xml item-descriptors to use coherence. By default it uses simple.
cache-mode="distributedExternal"

4. Copy the below jar files to <server-location>/lib
C:\ATG\ATG11.2\DAS\lib\atg-coherence-classes.jar
C:\ATG\ATG11.2\DAS\lib\coherence.jar

5. Add the below java startup args to the server.
COH_OPTION="-Dtangosol.coherence.cacheconfig=coherence-cache-config.xml -Dtangosol.pof.enabled=true -Dtangosol.pof.config=atg/adapter/gsa/externalcache/config/atg-pof-config.xml -Dtangosol.coherence.cluster=atg-coh -Dtangosol.coherence.clusteraddress=224.3.7.0 -Dtangosol.coherence.clusterport=3059"
JAVA_OPTIONS=$JAVA_OPTIONS:$COH_OPTION

CLASSPATH="/opt/app/workload/WebLogic/OCE_OS/lib/coherence.jar:/opt/app/workload/WebLogic/OCE_OS/lib/atg-coherence-classes.jar"
export CLASSPATH


For more information refer: http://docs.oracle.com/cd/E24152_01/Platform.10-1/ATGRepositoryGuide/html/s1101externalsqlrepositorycaching01.html

No comments:

Post a Comment