From: Olivier Lamy Date: Tue, 28 Jun 2011 22:19:30 +0000 (+0000) Subject: [MRM-1478] Enable DB caching X-Git-Tag: archiva-1.4-M1~565 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d7f0f916366c1a60b3ea4b2e6392fe3cdd85aa85;p=archiva.git [MRM-1478] Enable DB caching Submitted by Maria Catherine Tan patch applied with modifications git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1140869 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp/pom.xml b/archiva-modules/archiva-web/archiva-webapp/pom.xml index f33940dba..afb20eca4 100644 --- a/archiva-modules/archiva-web/archiva-webapp/pom.xml +++ b/archiva-modules/archiva-web/archiva-webapp/pom.xml @@ -358,6 +358,20 @@ test ${struts.version} + + jpox + jpox-ehcache + + + commons-logging + commons-logging + + + ehcache + ehcache + + + @@ -399,7 +413,7 @@ - + @@ -530,25 +544,6 @@ derby 10.1.3.1 - diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/resources/ehcache.xml b/archiva-modules/archiva-web/archiva-webapp/src/main/resources/ehcache.xml new file mode 100644 index 000000000..3dc15b013 --- /dev/null +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/resources/ehcache.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/applicationContext.xml b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/applicationContext.xml index 01d6dd055..857c4d9ec 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/applicationContext.xml +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/applicationContext.xml @@ -159,6 +159,12 @@ + + + true + ehcacheclassbased + defaultJpox + /ehcache.xml diff --git a/pom.xml b/pom.xml index 136efafb7..b03cd5ea0 100644 --- a/pom.xml +++ b/pom.xml @@ -1133,6 +1133,11 @@ 1.8.3 test + + jpox + jpox-ehcache + 1.1.9 +