Add cache manager configuration
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 17 Feb 2010 17:51:17 +0000 (17:51 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 17 Feb 2010 17:51:17 +0000 (17:51 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/branches/REL_2@2915 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/installer/resources/conf-tmpl/internal.xml
src/main/resources/ehcache.xml [new file with mode: 0644]

index f70185c..849718a 100644 (file)
@@ -5,6 +5,8 @@
      xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
                          http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd" >
 
+    <bean id="shibboleth.CacheMaager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" />
+
     <bean id="shibboleth.TaskTimer" class="java.util.Timer" destroy-method="cancel">
         <constructor-arg value="true" type="boolean" />
     </bean>
diff --git a/src/main/resources/ehcache.xml b/src/main/resources/ehcache.xml
new file mode 100644 (file)
index 0000000..a549e09
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<ehcache updateCheck="false" monitoring="off" dynamicConfig="false">
+
+    <defaultCache eternal="false" maxElementsInMemory="10000" memoryStoreEvictionPolicy="LRU"
+        overflowToDisk="false" />
+
+</ehcache>
\ No newline at end of file