Details
-
Task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.10
-
None
Description
For “jspwiki-portable” I try to
- run the JSPWiki libraries and its dependencies from CATALINA_HOME/lib
- run the wiki pages from a separate WAR whereas each WAR contains the required configuration files
AFAIK that worked with JSPWiki 2.9.x but is broken for the current trunk
The main problem seems to be that EHCache Manager is only available once for the whole Tomcat and therefore the same caches are used for multiple wikis.
What I'm trying to do is the following
String documentCacheName = engine.getApplicationName() + "." + DOCUMENTCACHE_NAME; if (m_cacheManager.cacheExists(documentCacheName)) { m_documentCache = m_cacheManager.getCache(documentCacheName); } else { log.info("cache with name " + documentCacheName + " not found in ehcache.xml, creating it with defaults."); m_documentCache = new Cache(documentCacheName, DEFAULT_CACHESIZE, false, false, m_cacheExpiryPeriod, m_cacheExpiryPeriod); m_cacheManager.addCache(m_documentCache); }
which is to use a prefix for the cache based on the application name