Configuring ehcache
Ehcache is an open source Java distributed cache for general-purpose caching, Java EE, and light-weight containers. Every node in the cluster can use the same plan_ehcache.xml file, or you can indicate a different plan_ehcache.xml file for each node.
For installations in a cluster, you can edit the plan_ehcache.xml file so that changes to templates or offer folders do not require a system restart. Select one of the procedures that follow based on whether you are using RMI or multicast for cache replication.
*
If your installation is upgraded from a previous version, some or all of the sections in the plan_ehcache.xml file may not be present. In that case, add and edit the file as shown in the sections that follow.
To configure ehcache with RMI
Marketing Operations systems that have the following topography typically use RMI:
Server with load balancing, two additional servers
Navigate to the <IBM_EMM_Home>\<MarketingOperations_Home>\conf directory and open the plan_ehcache.xml file in a text editor. Then make the following edits:
*
You must customize the items shown in bold (machineA, machineB, and port) to reflect your environment. Provide a pipe-separated list of all machines in the cluster, using fully qualified host names.
<!--
<cacheManagerPeerProviderFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
properties="peerDiscovery=manual,
rmiUrls=//
<machineA>:40000/planApplicationCache|//<machineB>:
40000/planApplicationCache"/>

<cacheManagerPeerListenerFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
properties="port=40000, socketTimeoutMillis=20000"/>
-->
*
<!--
<cacheEventListenerFactory
class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
properties="replicateAsynchronously=true, replicatePuts=true,
replicateUpdates=true, replicateUpdatesViaCopy=true,
replicateRemovals=true"/>
<cacheEventListenerFactory
class="com.unicacorp.uap.common.cache.PlanCacheEventListenerFactory
"net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory" />
-->
*
<bootstrapCacheLoaderFactory class=net.sf.ehcache.distribution.
RMIBootstrapCacheLoaderFactory"/>
To configure ehcache with multicast
Marketing Operations systems that have the following topography typically use multicast:
Server with load balancing, one additional server
Navigate to the <IBM_EMM_Home>\<MarketingOperations_Home>\conf directory and open the plan_ehcache.xml file in a text editor. Then make the following edits:
*
You must customize the items shown in bold (multicastGroupAddress and multicastGroupPort) to reflect the multicast group and port in your environment.
<!--<cacheManagerPeerProviderFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
properties="peerDiscovery=automatic, multicastGroupAddress=
230.0.0.1,
multicastGroupPort=4446, timeToLive=32"/>

<cacheManagerPeerListenerFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"/>
-->
*
<!--
<cacheEventListenerFactory
class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
properties="replicateAsynchronously=true, replicatePuts=true,
replicateUpdates=true, replicateUpdatesViaCopy=true,
replicateRemovals=true"/>
<cacheEventListenerFactory
class="com.unicacorp.uap.common.cache.PlanCacheEventListenerFactory" />
-->
*
<bootstrapCacheLoaderFactory
class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"/>