Hi ,
I have been trying to implement ehcache with Hibernate 2.1.1 into my project .
My configurations are as follows :-
<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
<?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"/>[/code]
files are getting created but there size is always zero.
For query cache also files are created but size zero.
All files have .data in the end.
2. if i enable show_sql then every time it is hitting sql means it's hitting DB.
Please help me !!
did i miss anything ???
Thanks in advance.