Oracle SOA Suite (MOSC)

MOSC Banner

Priming the OSB result cache

edited Sep 10, 2021 9:53AM in Oracle SOA Suite (MOSC) Question

Hi,


We have some use-cases where it would be very beneficial to prime (pre-load) the OSB result cache when bringing the application up (for example via a separate webapp where the process starts with @postconstruct or contextInitalized, etc, fetching data from a DB and injecting this data into the Coherence OSB result cache (many ways to do this, but not important for the actual question).


There are examples out there for invalidating objects in the OSB result cache, probably using undocumented (?) functionality. I have started investigating how to "put" data in the cache in a way that the OSB can understand (according to what a business-service would expect when fetching from the cache). After playing around i bit, i can see that it is possible to fetch from the cache by using the "ResultCacheManager", then construct a "ResultCacheKey" by using a "Ref", a db operation and the actual value. This will return a "Result" object.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center