Integration Server 11.1 | Integration Server Administrator's Guide | Caching Service Results | Using a Public Cache for Service Results Caching
 
Using a Public Cache for Service Results Caching
By default, Integration Server stores cached service results in the local ServiceResults system cache, which is part of the SoftwareAG.IS.Services system cache manager. If you want multiple Integration Servers to be able to access cached service results, you can store cached service results in a public cache, including a distributed cache, instead. Only Integration Servers that have the same packages installed on them can share a distributed cache.
The default public cache in Integration Server is Terracotta Ehcache. However, you can configure Integration Server to use other caching solutions that support the Java Specification Request 107 (JSR 107) specification. To change the default public cache for Integration Server use the watt.server.serviceResults.cache.storeType server configuration parameter. For information about configuring the parameter, see Configuring JSR 107 on Integration Server.
To configure Integration Server to use a Terracotta Ehcache public cache for service results caching, you specify the name of the cache and cache manager in the server configuration parameters watt.server.serviceResults.cache and watt.server.serviceResults.cacheManger, respectively. For detailed information about creating a Terracotta Ehcache public cache, public cache manager, and a distributed cache, see Configuring Terracotta Ehcache on Integration Server .
Keep the following information in mind when using a public cache for service results caching:
*The duration of cached service results depends on the Cache expire property value for the service and the watt.server.cache.flushMins server configuration parameter value.
*For Terracotta Ehcache, you can configure the cache so that elements do not expire once they are placed in the cache. To accomplish this, select the Eternal check box for the cache (see Creating a Cache).
*By default, when Integration Server returns cached results for a service, it returns the actual value of the cached results. For Terracotta Ehcache only, if you want Integration Server to return a reference instead, clear the Copy on Read and Copy on Write check boxes for the cache (see Creating a Cache).
*When a Terracotta Ehcache public cache used for service results caching is disabled or a public cache manager that contains the cache used for service results caching is shut down, Integration Server does not cache or retrieve service results. Instead, Integration Server executes the service.
*When a Terracotta Ehcache public cache used for service results caching is enabled or the public cache manager that contains the public cache used for service results is started, Integration Server re-initializes the cache.
Note:
In Integration Server Administrator, the Server > Service usage page displays statistics about service results. For a distributed cache, these statistics are for the current Integration Server instance only. Integration Server Administrator does not provide aggregated statistics for all the Integration Servers using the same distributed cache for service results caching.