From 4bcc1222e124064aae5de000178d7bdb545be3a7 Mon Sep 17 00:00:00 2001 From: Ben Alex Date: Tue, 21 Dec 2004 13:04:11 +0000 Subject: [PATCH] Modifications to support EH-CACHE upgrade (EH-CACHE appears to have changed the way the default cache configuration file gets handled). --- .classpath | 2 +- core/src/test/resources/ehcache-failsafe.xml | 52 +++++++++++++++++++ .../org/acegisecurity/applicationContext.xml | 3 ++ doc/docbook/index.xml | 12 ++++- project.xml | 2 +- 5 files changed, 67 insertions(+), 4 deletions(-) create mode 100644 core/src/test/resources/ehcache-failsafe.xml diff --git a/.classpath b/.classpath index 5779e50219..9047d483ee 100644 --- a/.classpath +++ b/.classpath @@ -42,7 +42,6 @@ - @@ -52,5 +51,6 @@ + diff --git a/core/src/test/resources/ehcache-failsafe.xml b/core/src/test/resources/ehcache-failsafe.xml new file mode 100644 index 0000000000..0f4b17031e --- /dev/null +++ b/core/src/test/resources/ehcache-failsafe.xml @@ -0,0 +1,52 @@ + + + + + + + + + + diff --git a/core/src/test/resources/org/acegisecurity/applicationContext.xml b/core/src/test/resources/org/acegisecurity/applicationContext.xml index a59ee01240..f350e0dfeb 100644 --- a/core/src/test/resources/org/acegisecurity/applicationContext.xml +++ b/core/src/test/resources/org/acegisecurity/applicationContext.xml @@ -28,6 +28,9 @@ + + classpath:/ehcache-failsafe.xml + diff --git a/doc/docbook/index.xml b/doc/docbook/index.xml index 4d311f36fa..490c9b10c7 100644 --- a/doc/docbook/index.xml +++ b/doc/docbook/index.xml @@ -1211,7 +1211,11 @@ public aspect DomainObjectInstanceSecurityAspect implements InitializingBean { <property name="userCache"><ref bean="userCache"/></property> </bean> -<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"/> +<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"> + <property name="configLocation"> + <value>classpath:/ehcache-failsafe.xml</value> + </property> +</bean> <bean id="userCacheBackend" class="org.springframework.cache.ehcache.EhCacheFactoryBean"> <property name="cacheManager"> @@ -3414,7 +3418,11 @@ $CATALINA_HOME/bin/startup.sh <!-- <property name="trustStore"><value>/some/path/to/your/lib/security/cacerts</value></property> --> </bean> -<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"/> +<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"> + <property name="configLocation"> + <value>classpath:/ehcache-failsafe.xml</value> + </property> +</bean> <bean id="ticketCacheBackend" class="org.springframework.cache.ehcache.EhCacheFactoryBean"> <property name="cacheManager"> diff --git a/project.xml b/project.xml index 06cb790e3d..9496499dbe 100644 --- a/project.xml +++ b/project.xml @@ -137,7 +137,7 @@ ehcache ehcache - 0.9 + 1.1 jar http://ehcache.sourceforge.net