Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-39135

Cannot configure hibernate cache values via Sakai properties

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0
    • Fix Version/s: 10.0
    • Component/s: Kernel
    • Labels:
      None
    • Previous Issue Keys:
      KNL-1143

      Description

      All properties except the hibernate caches were tested to be overridable via properties

      Here's the test:
      memory.org.hibernate.cache.StandardQueryCache=maxEntriesLocalHeap=911001
      memory.org.hibernate.cache.UpdateTimestampsCache=timeToLiveSeconds=911002

      This cache is setup in
      api/src/main/java/org/sakaiproject/memory/api/ehcache.xml

      This file also seems to take precedence on other properties as well if you put them in here.

      I feel like to fix this we're going to have to create a local implementation of
      org.springframework.cache.ehcache.EhCacheManagerFactoryBean

      And change that in kernel-component/src/main/webapp/WEB-INF/memory-components.xml to use ours to run afterPropertiesSet and set our memory properties similar to EhCacheFactoryBean in KNL-1118.

      Since this is a little involved I created a separate ticket from KNL-1118.

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  jonespm Matthew Jones
                  Reporter:
                  jonespm Matthew Jones
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration