Topic
2 replies Latest Post - ‏2013-01-03T22:14:55Z by SystemAdmin
SystemAdmin
SystemAdmin
37422 Posts
ACCEPTED ANSWER

Pinned topic Getting list of object cache instances

‏2012-12-27T22:12:31Z |
I am trying to use java API to get list of object cache instances.
If I use DynaCache MBean I do get a list of caches but those don't include object caches.

Any idea how to get list of object cache instances?
Updated on 2013-01-03T22:14:55Z at 2013-01-03T22:14:55Z by SystemAdmin
  • bpaskin
    bpaskin
    3765 Posts
    ACCEPTED ANSWER

    Re: Getting list of object cache instances

    ‏2012-12-31T13:57:40Z  in response to SystemAdmin
    Hi,

    There is a difference between the DynaCache and Object Cache. You can use the DistributedObjectCache to access the cache itself and then get the keys in a Set and then get the values for each key.

    Regards,
    Brian
    • SystemAdmin
      SystemAdmin
      37422 Posts
      ACCEPTED ANSWER

      Re: Getting list of object cache instances

      ‏2013-01-03T22:14:55Z  in response to bpaskin
      Thanks for the response Brian. Funny that all the time I have been referring to it as a type of Dyna Cache.

      I am able to use the object cache to add and retrieve objects without any issue.
      However, I want to be able to get a list of object cache instances (not the individual objects within a specific cache instance) that are configured on the WAS. Is there any API call to get that?