Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-832

[Portable] Problems setting up multiple wikis using a shared JSPWiki libraries

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.10
    • 2.10.1
    • Core & storage
    • 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            sgoeschl Siegfried Goeschl
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: