Ananasi wrote:
1) This should probably be in the main forum, since it has nothing to do with Hibernate Tools.
2) This entry:
Code:
<class-cache name="com.gdw.gemini.model.MediaType"
maxElementsInMemory="300"
eternal="true"
overflowToDisk="false"
/>
is peculiar. I've not seen a class-cache element used before, and it does not seem to be documented. What version of ehcache are you using? Does cacheing occur if you change that to just 'cache'? What log messages are outputted when ehcache spins up? And finally, how are you determining the cache hits and misses?
Quote:
Hey Thanks for quick reply. Even if i change to cache, caching doesnt work.
I am determining the cache hits and misses in this way...
I would change the value in database field and save it, refresh it. And then go to my UI and refresh the page. I should see the previous value and not the one which i changed in the database.
As far as log messages are concerned, i am attaching the messages that i received on my console.
I am sorry as this looks weired, but i didnt found any other way to show this.
INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
INFO [SettingsFactory] Scrollable result sets: enabled
INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
INFO [SettingsFactory] Connection release mode: on_close
INFO [SettingsFactory] Default batch fetch size: 1
INFO [SettingsFactory] Generate SQL with comments: disabled
INFO [SettingsFactory] Order SQL updates by primary key: disabled
INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
INFO [SettingsFactory] Query language substitutions: {}
INFO [SettingsFactory] Second-level cache: enabled
INFO [SettingsFactory] Query cache: enabled
INFO [SettingsFactory] Cache provider: org.hibernate.cache.EhCacheProvider
INFO [SettingsFactory] Optimize cache for minimal puts: disabled
INFO [SettingsFactory] Structured second-level cache entries: disabled
INFO [SettingsFactory] Query cache factory: org.hibernate.cache.StandardQueryCacheFactory
INFO [SettingsFactory] Statistics: disabled
INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
INFO [SettingsFactory] Default entity-mode: pojo
INFO [SessionFactoryImpl] building session factory
WARN [Configurator] No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/E:/GDWSoftwares/jboss-4.0.3SP1/server/default/tmp/deploy/tmp42191gdwatlas-exp.war/WEB-INF/lib/ehcache-0.9.jar!/ehcache-failsafe.xml
WARN [EhCacheProvider] Could not find configuration [com.gdw.gemini.model.MediaType]; using defaults.
WARN [CacheFactory] read-only cache configured for mutable class: com.gdw.gemini.model.Project
WARN [EhCacheProvider] Could not find configuration [com.gdw.gemini.model.Project]; using defaults.
WARN [CacheFactory] read-only cache configured for mutable class: com.gdw.gemini.model.Spindle
WARN [EhCacheProvider] Could not find configuration [com.gdw.gemini.model.Spindle]; using defaults.
WARN [CacheFactory] read-only cache configured for mutable class: com.gdw.gemini.model.ThresholdLimit
WARN [EhCacheProvider] Could not find configuration [com.gdw.gemini.model.ThresholdLimit]; using defaults.
INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
INFO [UpdateTimestampsCache] starting update timestamps cache at region: org.hibernate.cache.UpdateTimestampsCache
WARN [EhCacheProvider] Could not find configuration [org.hibernate.cache.UpdateTimestampsCache]; using defaults.
INFO [StandardQueryCache] starting query cache at region: org.hibernate.cache.StandardQueryCache
WARN [EhCacheProvider] Could not find configuration [org.hibernate.cache.StandardQueryCache]; using defaults.
Please help me to solve this problem.
[/u][/i]