rhinosystemsinc.com wrote:
sorry, mispoke ehcache manages your 2nd level cache JVM-Level (I just checked the manual)...the rest of what I said about session & factory should work.
Thanks for the suggestion and information. Session flush, evict and refresh were tried with apparently no effect on ehcache evidenced by the non-updated rows being returned despite the database having been updated. It's as if the 1st and 2nd level caches are simply independent. And I'm OK with that I just need a way for Hibernate to tell the 2nd level cache to refresh itself or clear itself or a way to directly access the 2nd level cache. For example, would the ehcache CacheManager work for this?
In the meantime I will try to put together an example of the problem.