Hi ,
Iam trying to understand Second level Caching .I have enabled EHCache in hibernate.cfg.xml file.
<property name="hibernate.cache.provider_class">
org.hibernate.cache.EHCacheProvider
</property>
I have enabled it in hibernate.propereties file:
hibernate.cache.provider_class org.hibernate.cache.EhCacheProvider
In ehcache.xml i specified :
<cache name="pac.Appt"
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="360"
timeToLiveSeconds="6000"
overflowToDisk="false"
/>
But when I try to execute a query i find the following in the log stmts:
12:11:39,073 INFO Configuration: Configuration resource: /hibernate.cfg.xml
12:11:39,323 DEBUG DTDEntityResolver: trying to locate
http://hibernate.sourceforge.net/hibern ... on-3.0.dtd in classpath under org/hibernate/
12:11:39,323 DEBUG DTDEntityResolver: found
http://hibernate.sourceforge.net/hibern ... on-3.0.dtd in classpath
12:11:39,370 DEBUG Configuration: hibernate.cache.provider_class=org.hibernate.cache.EHCacheProvider
12:11:39,370 DEBUG Configuration: hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider12:11:39,370 DEBUG Configuration: hibernate.cache.region_prefix=hibernate.test
12:11:40,151 INFO Second-level cache: enabled
12:11:40,151 INFO SettingsFactory: Query cache: disabled
12:11:40,151 INFO
SettingsFactory: Cache provider: org.hibernate.cache.HashtableCacheProvider
12:11:40,151 INFO SettingsFactory: Optimize cache for minimal puts: disabled
12:11:40,151 INFO SettingsFactory: Cache region prefix: hibernate.test
12:11:40,151 INFO SettingsFactory: Structured second-level cache entries: disabled
12:11:40,151 DEBUG SQLExceptionConverterFactory: Using dialect defined converter
12:11:40,151 INFO SettingsFactory: Statistics: disabled
When I have specified
EHCacheProvider why its showing
HashTableCacheProvider in the log stmts..
And how can I know that this cache is actually being used from the logs?
Thnx .