File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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
 
 
subject: EHCache and Queries