archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1341456 - /archiva/trunk/archiva-jetty-js/src/main/conf/jetty.xml
Date Tue, 22 May 2012 13:01:31 GMT
Author: olamy
Date: Tue May 22 13:01:30 2012
New Revision: 1341456

URL: http://svn.apache.org/viewvc?rev=1341456&view=rev
Log:
use a database connection pooling from commons-dbcp for users database connection

Modified:
    archiva/trunk/archiva-jetty-js/src/main/conf/jetty.xml

Modified: archiva/trunk/archiva-jetty-js/src/main/conf/jetty.xml
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-jetty-js/src/main/conf/jetty.xml?rev=1341456&r1=1341455&r2=1341456&view=diff
==============================================================================
--- archiva/trunk/archiva-jetty-js/src/main/conf/jetty.xml (original)
+++ archiva/trunk/archiva-jetty-js/src/main/conf/jetty.xml Tue May 22 13:01:30 2012
@@ -288,7 +288,7 @@
   </New>
 
   <!-- Users / Security Database -->
-  
+  <!--
   <New id="users" class="org.eclipse.jetty.plus.jndi.Resource">
     <Arg>jdbc/users</Arg>
     <Arg>
@@ -310,4 +310,30 @@
       </New>
     </Arg>
   </New>
+  -->
+  <New id="users" class="org.eclipse.jetty.plus.jndi.Resource">
+    <Arg>jdbc/users</Arg>
+    <Arg>
+      <New class="org.apache.commons.dbcp.BasicDataSource">
+        <Set name="driverClassName">org.apache.derby.jdbc.EmbeddedDriver</Set>
+        <Set name="url">jdbc:derby:<SystemProperty name="appserver.base" default=".."/>/data/databases/users;create=true</Set>
+        <Set name="username">sa</Set>
+        <Set name="maxActive">20</Set>
+        <Set name="RemoveAbandoned">true</Set>
+        <Set name="LogAbandoned">true</Set>
+        <Set name="InitialSize">5</Set>
+      </New>
+    </Arg>
+  </New>
+
+  <New id="usersShutdown" class="org.eclipse.jetty.plus.jndi.Resource">
+    <Arg>jdbc/usersShutdown</Arg>
+    <Arg>
+      <New class="org.apache.commons.dbcp.BasicDataSource">
+        <Set name="driverClassName">org.apache.derby.jdbc.EmbeddedDriver</Set>
+        <Set name="url">jdbc:derby:<SystemProperty name="appserver.base" default=".."/>/data/databases/users</Set>
+        <Set name="username">sa</Set>
+      </New>
+    </Arg>
+  </New>
 </Configure>



Mime
View raw message