Hi Folks,
Recently I have been performing coherence implementation and using Oracle SOA Suite 12c(12.1.3.0.0). I am using Coherence adapter available in SOA Suite 12c for the implementation. However, the caching is working fine but I am not able to expire the cache.
Below two possibilities I have already tried -
- I have configured TTL (TimeToLive) attribute to 60000ms i.e. 1 minute during Coherence adapter configuration for PUT operation but the cache was not expiring. Here I have used the available JNDI eis/Coherence/Local during adapter configuration.
- Created a custom adapter configuration file and use it as CacheConfig in JNDI configuration of new JNDI (eis/Coherence/CustomConfig). Set <expiry-delay> and <flush-delay> attribute with <transactional-scheme> . Done necessary changes in composite and test it. Cache won't expire.
Any idea what I have been missing here or anything wrong.
Below is my custom adapter config-
<?xml version="1.0"?>
<!DOCTYPE cache-config SYSTEM "cache-config.dtd">
<cache-config>
<caching-scheme-mapping>
<cache-mapping>
<cache-name>local-cache</cache-name>
<scheme-name>no-trans-ttl</scheme-name>
</cache-mapping>
</caching-scheme-mapping>
<caching-schemes>
<transactional-scheme>
<scheme-name>no-trans-ttl</scheme-name>
<service-name>LocalCache</service-name>
<autostart>false</autostart>
<expiry-delay>60000</expiry-delay>
<flush-delay>10</flush-delay>
</transactional-scheme>
</caching-schemes>
</cache-config>