Hi All Spring Experts,
Please help me to update the Cache. I am using @Cacheable annotation from Google docs along with EhCache.xml and it does caching at the application startup but My requirement is like this -
When someone add the new data in the Database then one application sends me that data via JMS and I fetch with MDB and need to update in Cache object. So for that I am using @CachePut to add the new objects into Cache and @CacheEvict to remove the exist objects from Cache.
But these two annotations are not working, even I am trying them in right way, i.e. using the same object or map as with Cacheable. I have googled it all the way but not working. My requirement is not to sync the Cache with DB every time it gets updated.
Please help me to implement this.
Thanks,
Deepesh