mirror of https://github.com/apache/archiva.git
[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
This commit is contained in:
parent
3fbd2cd8df
commit
831a518f97
|
@ -132,6 +132,17 @@
|
|||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-dbcp</groupId>
|
||||
<artifactId>commons-dbcp</artifactId>
|
||||
<version>1.2.1</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>xerces</groupId>
|
||||
<artifactId>xercesImpl</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<plugins>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue