Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Overwriting cache-ttl in OSB proxy for a cached service

user13154031Jan 18 2016 — edited Jan 19 2016

Hi,

I have an OSB business service with results caching enabled - it has an expiratio time of 1 minute (just for testing purposes).  I created 2 OSB proxies hitting this service - a cached version and am now trying to create a non-cached version.  To make the non-cached version, I did not want to create just a duplicate business service with caching disabled that the proxy calls out to, but wanted to set the cache-ttl value to "-1" in the request as the documentation states you can do and so have both the cached and non-cached proxy hit the same service. However, following the documentation which states: "Note: You can also generate the expiration from the request, without setting an Expiration Time in the business service configuration. To do this, include a value in $outbound/ctx:transport/ctx:request/ctx:cache-ttl in the proxy service pipeline. Any value in the cache-ttl element overrides the Expiration Time in the business service configuration." did not seem to take effect. 

In the proxy, in the Service Callout action where I invoke the business service, in the Request pipeline, I added a Replace action to replace $outbound/ctx:transport/ctx:request/ctx:cache-ttl node contents with -1 expression, but in the Response pipeline of the Service Callout, I am still seeing  $outbound/ctx:transport/ctx:request/tp:cache-ttl value as PT1M which indicates 1 minute so it looks like the cache-ttl value is not being overwritten (and testing confirmed the service results were being cached).  I also tested with replacing the cache-ttl of the $inbound variable instead of $outbound to see if that changed anything, but same effect.  Any ideas what I'm doing wrong or how to overwrite the default expiration time/cache-ttl to -1 in a proxy so the results are not cached from the service?  Thanks.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 15 2016
Added on Jan 18 2016
0 comments
579 views