Invalidate ehcache on XML file change

  • Anonymous - 2012-08-23

    We have requirement to parse XML to java object and store java objects into cache. We are using ehcache for caching java objects.
    Is there any way to invalidate or remove ehcache when XML file change?

  • Andrew Liles

    Andrew Liles - 2012-08-24

    The forum has moved to

    however, you can easily invalidate the cache.
    Obtain a handle to the instance of the cache via CacheManager, etc and call:
    Or if you need to remove some objects you can, of course, remove individual elements.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks