Cloud Application Integration (On-Premises) : Administering Integration Server : Caching Service Results : Changing the Service Results Cache to Return a Value Instead of a Reference
Changing the Service Results Cache to Return a Value Instead of a Reference
When returning cached results for a service, by default, Integration Server returns a referenced to the cached results instead of the actual value of the cached results. If a subsequent step in the service modifies the returned result, Integration Server changes the cached value as well, which affects all references to the cached value. If any other service uses the cached results, those services will begin using the updated cache value. You can address this issue in one of the following ways:
*Make sure flow services do not modify cached service results.
*Change the ServiceResults cache to return the actual cached value instead of just the reference to the cached value.
The following procedure explains how to change the ServiceResults cache to return a value instead of a reference to a value.
To change the ServiceResults cache to return a value instead of a reference
1. Open the following file in a text editor:
Integration Server_directory /instances/instance_name/config/Caching/SoftwateAG-IS-Services.xml
2. In the cache element, add the following attributes:
copyOnWrite=”true”
copyOnRead=”true”
For example:
<cache
name="ServiceResults"
eternal="true"
maxEntriesLocalHeap="1000"
maxEntriesLocalDisk="1000"
copyOnWrite=”true”
copyOnRead=”true”
cacheLoaderTimeoutMillis="30000">
<persistence strategy="none"/> </cache>
3. Save your changes.
4. Restart Integration Server.
Copyright © 2015- 2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback