This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I want to use a Second-Level chache in my code which has Spring and hibernate. I've made all the configurations in spring-persistence.xml for Ehcache configuration and the cache is working fine. My problem is that the configurations are already set by default in the ehcache-failsafe.xml. When I change the value in database and refresh the page, the changes are not reflected immediately since the timeToIdleSeconds="120" in the xml. I want to change this to 0 so that the changes are reflected immediately. I tried doing this : CacheManager manager = CacheManager.create();