Env: Seam 2.2.0, JPA, Hibernate 3.3.x, ehcache-core 2.0.1
Here are some observations on using a cache along with Hibernate. We are already using the 2nd level cache but not quite comfortable with the response times.
The third option mentioned in the above reference (Direct access to EHCache, only use Hibernate on a cache miss: 20 second) talks about using ehcache in front of the persistence layer. We are already using Seam's EntityQuery framework for all our queries, is it possible to enable the above option where-in you access ehcache first before querying or loading objects. How does modification or deletion of entity gets handled in such cases, do you have to manually evict these entries from the cache then. Can someone shed some light on this?