Hi ,
I have been trying to implement ehcache with Hibernate 2.1.1 into my project .
My configurations are as follows :-
Code:
<prop key="hibernate.cache.provider_class">net.sf.ehcache.hibernate.Provider</prop>
<prop key="hibernate.cache.use_second_level_cache">true</prop>
<prop key="hibernate.cache.use_query_cache">true</prop>
<prop key="net.sf.ehcache.configurationResourceName">/ehcache.xml</prop>
My ehcache code
Code:
<?xml version="1.0"?>
<ehcache>
<diskStore path="G:/testing/"/>
<defaultCache
maxElementsInMemory="1000"
eternal="false"
timeToIdleSeconds="2200"
timeToLiveSeconds="2000"
overflowToDisk="true"
/>
</ehcache>
Issues :-1.
It's not taking my ehcache.xml but it's taking the default one inside ehcache.jar
HBM's for which i have mentioned
Code:
<cache usage="read-write"/>
files are getting created but there size is always zero.
For query cache also files are created but size zero.
All files have .data at the end2.
if i enable show_sql then every time it is hitting sql means it's hitting DB. Please help me !!
did i miss anything ???Actually files are getting created for caching but nothing is getting stored in that
there size is alwasys o
Thanks in advance.
Manish