diff options
author | Maria Odea B. Ching <oching@apache.org> | 2008-06-20 03:49:16 +0000 |
---|---|---|
committer | Maria Odea B. Ching <oching@apache.org> | 2008-06-20 03:49:16 +0000 |
commit | 831a518f977aed367f2a35ba2c526b4c1e6b5969 (patch) | |
tree | ad33056c383b59bb2ac2b7074cbe59a73be3809a /archiva-jetty/src | |
parent | 3fbd2cd8df32ab8bad4cfcc0bddb5aefebb5eede (diff) | |
download | archiva-831a518f977aed367f2a35ba2c526b4c1e6b5969.tar.gz archiva-831a518f977aed367f2a35ba2c526b4c1e6b5969.zip |
[MRM-751]
-configure jetty to use commons-dbcp for db connection pool
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@669774 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-jetty/src')
-rw-r--r-- | archiva-jetty/src/main/conf/jetty.xml | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/archiva-jetty/src/main/conf/jetty.xml b/archiva-jetty/src/main/conf/jetty.xml index 439d808c3..5a106f08e 100644 --- a/archiva-jetty/src/main/conf/jetty.xml +++ b/archiva-jetty/src/main/conf/jetty.xml @@ -296,26 +296,33 @@ </New> <!-- Archiva database --> - <New id="archiva" class="org.mortbay.jetty.plus.naming.Resource"> - <Arg>jdbc/archiva</Arg> - <Arg> - <New class="org.apache.derby.jdbc.EmbeddedDataSource"> - <Set name="DatabaseName"><SystemProperty name="appserver.base" default=".."/>/data/databases/archiva</Set> - <Set name="user">sa</Set> - <Set name="createDatabase">create</Set> - </New> - </Arg> + <Arg>jdbc/archiva</Arg> + <Arg> + <New class="org.apache.commons.dbcp.BasicDataSource"> + <Set name="driverClassName">org.apache.derby.jdbc.EmbeddedDataSource</Set> + <Set name="url">jdbc:derby:<SystemProperty name="appserver.base" default=".."/>/data/databases/archiva</Set> + <Set name="username">sa</Set> + <Call name="addConnectionProperty"> + <Arg>create</Arg> + <Arg>true</Arg> + </Call> + </New> + </Arg> </New> <New id="archivaShutdown" class="org.mortbay.jetty.plus.naming.Resource"> <Arg>jdbc/archivaShutdown</Arg> <Arg> - <New class="org.apache.derby.jdbc.EmbeddedDataSource"> - <Set name="DatabaseName"><SystemProperty name="appserver.base" default=".."/>/data/databases/archiva</Set> - <Set name="user">sa</Set> - <Set name="shutdownDatabase">shutdown</Set> - </New> + <New class="org.apache.commons.dbcp.BasicDataSource"> + <Set name="driverClassName">org.apache.derby.jdbc.EmbeddedDataSource</Set> + <Set name="url">jdbc:derby:<SystemProperty name="appserver.base" default=".."/>/data/databases/archiva</Set> + <Set name="username">sa</Set> + <Call name="addConnectionProperty"> + <Arg>shutdown</Arg> + <Arg>true</Arg> + </Call> + </New> </Arg> </New> |