I'm trying to set up a Terracotta Server to manage my application's cache.I have set up the following :
1.)ehcache.xml
<defaultCache
maxElementsInMemory="50"
eternal="false"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
overflowToDisk="false"
statistics="true" >
<terracotta/>
</defaultCache>
<cache name="Usr"
maxElementsInMemory="1000"
eternal="false"
timeToIdleSeconds="320"
timeToLiveSeconds="320"
overflowToDisk="false">
<terracotta/>
</cache>
<cache name="Address"
maxElementsInMemory="1000"
eternal="false"
timeToIdleSeconds="320"
timeToLiveSeconds="320"
overflowToDisk="false">
<terracotta/>
</cache>
2.) hibernate.cfg.xml
<session-factory>
<property name="generate_statistics">true</property>
...