I am using AppFuse 2.0 and looking at ehcache.  It seems that out of the box
AppFuse uses only the Gzip servlet filter from ehcache.  What I want to do
is use ehcache with Hibernate in the core module, and also use ehcache for
other caching in the web module.  I think these should use separate
CacheManagers and that I should do the following:

In the hibernateProperties section of applicationContext-dao.xml

    hibernate.cache.use_second_level_cache=true
    hibernate.cache.provider_class=org.hibernate.cache.EhCacheProvider
   
hibernate.cache.provider_configuration_file_resource_path=/ehcache-hibernate.xml

I would put caches for use with my Hibernate model classes in
ehcache-hibernate.xml.

Then in the web module, I would use the ehcache.xml file for web tier
caches.  (I am not sure how to specify the cache provider for the web tier. 
Is it net.sf.ehcache.hibernate.EhCacheProvider by default?)

The main thing is to separate the cashes used by Hibernate and by the web
module.  I'd appreciate any comments.

Thanks,

Richard Brewster

-- 
View this message in context: 
http://www.nabble.com/Ehcache-providers-and-CacheManagers-in-a-modular-project-tf4914320s2369.html#a14067486
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to