This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

JavaRanch » Java Forums » Caching » EhCache
Bookmark "EHCache and Queries" Watch "EHCache and Queries" New topic

EHCache and Queries

Tommi Vd
Ranch Hand

Joined: Apr 23, 2009
Posts: 49

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
Have you checked out Aspose?
subject: EHCache and Queries
It's not a secret anymore!