]> source.dussan.org Git - archiva.git/commitdiff
no more need of commons-* in embeded dist and add testOnBorrow validation
authorOlivier Lamy <olamy@apache.org>
Mon, 24 Sep 2012 16:12:14 +0000 (16:12 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 24 Sep 2012 16:12:14 +0000 (16:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1389467 13f79535-47bb-0310-9956-ffa450edef68

archiva-jetty-js/pom.xml
archiva-jetty-js/src/main/conf/jetty.xml

index ebd9d24c38db5f46aa8c8607f44ae0e23027b8d2..5388bb769ecc8414a8ab76a53567a299a9c47ddd 100644 (file)
       <artifactId>tomcat-jdbc</artifactId>
       <scope>runtime</scope>
     </dependency>
-    <dependency>
-      <groupId>commons-dbcp</groupId>
-      <artifactId>commons-dbcp</artifactId>
-      <scope>runtime</scope>
-    </dependency>
-    <dependency>
-      <groupId>commons-pool</groupId>
-      <artifactId>commons-pool</artifactId>
-      <scope>runtime</scope>
-    </dependency>
   </dependencies>
   <build>
     <plugins>
index 28d59fa0ade522ca804eda4c5c808821647e0db1..4592f3718b05a7faf7b9280234a3237221e9f25b 100644 (file)
         <Set name="removeAbandoned">true</Set>
         <Set name="logAbandoned">true</Set>
         <Set name="initialSize">5</Set>
+        <Set name="testOnBorrow">true</Set>
+        <!-- very rigourous sql query validation -->
+        <Set name="validationQuery">select 1</Set>
       </New>
     </Arg>
   </New>