Thanks Brian, I'm testing with these two properties in the persistence.xml file. Even if use_query_cache is set to true, you need to set @QueryHint to see query results in the cache, though, yes, entities are cached.
Anyway, the key point I was missing is the PK. Entities are cached and will also be retrieved from the cache when searched by PK. However, still confusing the behaviour of the statistics, since cache hits is always zero and so it is Hit/Miss ratio. Cache misses seems to be working fine. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222489#4222489 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4222489 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user