diff options
author | Olivier Lamy <olamy@apache.org> | 2012-05-22 13:01:30 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-05-22 13:01:30 +0000 |
commit | 73c76ba944ca42eb94031f7c92ceb0cf2e6bf27f (patch) | |
tree | c9bbdecf25f8590caaffd4228e4abc79da90194e /archiva-jetty-js/src/main/conf/jetty.xml | |
parent | 18591fe3be42031e04adabfb180f6cbbebb5eb1f (diff) | |
download | archiva-73c76ba944ca42eb94031f7c92ceb0cf2e6bf27f.tar.gz archiva-73c76ba944ca42eb94031f7c92ceb0cf2e6bf27f.zip |
use a database connection pooling from commons-dbcp for users database connection
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1341456 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-jetty-js/src/main/conf/jetty.xml')
-rw-r--r-- | archiva-jetty-js/src/main/conf/jetty.xml | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/archiva-jetty-js/src/main/conf/jetty.xml b/archiva-jetty-js/src/main/conf/jetty.xml index 91d2c091e..407dfd4cd 100644 --- a/archiva-jetty-js/src/main/conf/jetty.xml +++ b/archiva-jetty-js/src/main/conf/jetty.xml @@ -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> |