2012-10-01 4 views
0

J'ai configuré ehcache pour le cache de second niveau d'hibernation pour utiliser un serveur Terracotta. Tout fonctionne correctement, sauf que UpdateTimestampsCache pour le cache de requête n'apparaît pas dans la console de développement. Nous utilisons Hibernate 3.6.10 et ehcache 2.6.0.UpdateTimestampsCache n'apparaissant pas dans Terracotta Dev Console

Je vois toutes les entités, collection, requête et le StandardQueryCache, mais pas org.hibernate.cache.UpdateTimestampsCache. Je sais que le cache d'horodatage existe et est utilisé parce que je peux voir les statistiques à l'aide de la métrique libérée.

Des idées? Merci!

Voici mon config ehcache.xml

<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd" 
    updateCheck="false" 
    name="Hibernate-CacheManager" 
    monitoring="autodetect" 
    dynamicConfig="true">  

<terracottaConfig url="localhost:9510" /> 

<defaultCache 
    eternal="false" 
    overflowToDisk="false" 
    maxElementsInMemory="50000" 
    timeToIdleSeconds="7200" 
    timeToLiveSeconds="0"> 

    <cacheDecoratorFactory 
     class="com.yammer.metrics.ehcache.InstrumentedEhcacheFactory" /> 

    <terracotta/> 
</defaultCache> 


<cache 
    name="org.hibernate.cache.UpdateTimestampsCache" 
    eternal="false" 
    overflowToDisk="false" 
    maxElementsInMemory="500" 
    timeToIdleSeconds="7200" 
    timeToLiveSeconds="0"> 

    <cacheDecoratorFactory 
     class="com.yammer.metrics.ehcache.InstrumentedEhcacheFactory" /> 

    <terracotta/> 

</cache> 

<cache 
    name="org.hibernate.cache.StandardQueryCache" 
    eternal="false" 
    overflowToDisk="false" 
    maxElementsInMemory="50000" 
    timeToIdleSeconds="7200" 
    timeToLiveSeconds="0"> 

    <cacheDecoratorFactory 
     class="com.yammer.metrics.ehcache.InstrumentedEhcacheFactory" /> 

    <terracotta/> 

</cache> 
</ehcache> 

Répondre

Questions connexes