Hello,
I am trying to use the cache for some time, and combined with createQuery, things go well;
I have however one message at startup which tells me that something is missing:
at startup I am getting this message:
11:08:57,031 WARN Plugin:95 - Could not find configuration for eu.cec.admin.epes.services.exercice.Exercice. Configuring using the defaultCache settings.
this message appears for each <jcs-class-cache> in hibernate.cfg.xml
I thought I linked this class to the specified cache-region by doing the following
in hibernate.cfg.xml:
<mapping resource="catalogs/exercice.hbm.xml"/>
...
<jcs-class-cache class="eu.cec.admin.epes.services.exercice.Exercice" region="exercice" usage="read-write"/>
in exercice.hbm.xml:
<class
name="eu.cec.admin.epes.services.exercice.Exercice"
table="EPES_EXERCICES" >
<jcs-cache usage="read-write"/>
in ehcache.xml
<cache
name="exercice"
maxElementsInMemory="10"
eternal="true"/>
at startup I get the following
14:24:10,406 INFO Binder:225 - Mapping class: eu.cec.admin.epes.services.exercice.Exercice -> EPES_EXERCICES
14:24:10,406 DEBUG CacheFactory:32 - cache for: eu.cec.admin.epes.services.exercice.Exercice usage strategy: read-write
...
14:24:10,562 DEBUG CacheFactory:32 - cache for: exercice usage strategy: read-write
...
14:24:10,671 WARN Plugin:95 - Could not find configuration for eu.cec.admin.epes.services.exercice.Exercice. Configuring using the defaultCache settings.
How can I get around this message; maybe is this linked to a difference in the <cache> and <jcs-cache> tag ???
How do I link my class correctly to a cache-region ?
Thanks for any hints,
Jan