Hi,
I'm trying to get second level cache to work using the EHCache provider. First, I get following in my log when starting:
Code:
DEBUG [main] (Configuration.java:1104) - instantiating cache se.tnsys.monster.model.monitor.MonitorView
WARN [main] (Configurator.java:123) - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: file:/C:/jakarta/jakarta-tomcat-5.0.19/work/Catalina/localhost/monster/loader/ehcache-failsafe.xml
Then I get following for each of my mapped classes during "Hibernate Configuration startup"
Code:
WARN [main] (Plugin.java:95) - Could not find configuration for se.tnsys.monster.model.monitor.MonitorView. Configuring using the defaultCache settings.
DEBUG [main] (Configuration.java:1104) - instantiating cache se.tnsys.monster.model.schedule.MonsterMonitorSchedule
Once Tomcat is started everything works but I suspect the cache isn't working as "show_sql" indicates lots of sql that aren't needed.
I have mapped my classes with cache usage=read-write (XDoclet) but not mapped any "Collection mappings".
Is there any simple way to check that objects are fetched from the cache rather than through sql??
I'm using Hbm 2.1.3 together with MySQL 4.0.12.
Thanks // Torben