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!

Obtaining a list of cache names from Coherence

929352May 4 2012 — edited Jul 30 2013
Hello All,
How to I go about getting a list of the NamedCaches that are present in a Coherence cluster at any given time?

I couldn't find any APIs for the same, nor could I find any definitive answers in the forums.

I need to perform the pretty routine task of pre-loading my caches on startup, and therefore I need the names of the caches configured in my coherence-cache-config.xml file.

I do not have any dynamically added caches, so yes, I could pretty much use hard coded cache names in my initialization routine.

I could also parse my config file to avoid hardcoding of the cache names.

But I was wondering whether there was an API from Coherence that could help me out.

Thanks.
This post has been answered by Jonathan.Knight on May 10 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 27 2013
Added on May 4 2012
12 comments
5,155 views