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.
The moose likes EhCache and the fly likes EHCache and Queries Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Caching » EhCache
Bookmark "EHCache and Queries" Watch "EHCache and Queries" New topic
Author

EHCache and Queries

Tommi Vd
Ranch Hand

Joined: Apr 23, 2009
Posts: 49
Hi,

Is it normal when i configured ehcache for a entity that when i put the show_sql on true i still see every time those sql's?
In the server logs stands that de cach is configured for the Regio entity.

kind regards
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

No, normally you don't see those SQLs. If you see those SQLs, that means there is no hit to your second-level cache.


SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
 
jQuery in Action, 2nd edition
 
subject: EHCache and Queries