diff options
author | olivier lamy <olamy@apache.org> | 2017-06-20 21:49:28 +1000 |
---|---|---|
committer | olivier lamy <olamy@apache.org> | 2017-06-20 21:49:28 +1000 |
commit | 8d3f82a479b6eb2bf709b1831351e20309735683 (patch) | |
tree | 9519d87a2f1b20e5b66c007c6ec710819d7ee969 /archiva-jetty/src/main | |
parent | c6d882dfdc373010380f6aff3c36cc6404b2e942 (diff) | |
download | archiva-8d3f82a479b6eb2bf709b1831351e20309735683.tar.gz archiva-8d3f82a479b6eb2bf709b1831351e20309735683.zip |
[MRM-1956] Replace tomcat-jdbc pool with HikariCP
Signed-off-by: olivier lamy <olamy@apache.org>
Diffstat (limited to 'archiva-jetty/src/main')
-rw-r--r-- | archiva-jetty/src/main/conf/jetty.xml | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/archiva-jetty/src/main/conf/jetty.xml b/archiva-jetty/src/main/conf/jetty.xml index b7e66d463..31c81822d 100644 --- a/archiva-jetty/src/main/conf/jetty.xml +++ b/archiva-jetty/src/main/conf/jetty.xml @@ -157,31 +157,29 @@ <New id="users" class="org.eclipse.jetty.plus.jndi.Resource"> <Arg>jdbc/users</Arg> <Arg> - <New class="org.apache.tomcat.jdbc.pool.DataSource"> + <New class="com.zaxxer.hikari.HikariDataSource"> <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="jdbcUrl">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> - <Set name="testOnBorrow">true</Set> + <Set name="maximumPoolSize">20</Set> + <Set name="minimumIdle">5</Set> <!-- very rigourous sql query validation --> - <Set name="validationQuery">select 1</Set> + <!--Set name="connectionTestQuery">select 1</Set--> </New> </Arg> </New> + <!-- <New id="usersShutdown" class="org.eclipse.jetty.plus.jndi.Resource"> <Arg>jdbc/usersShutdown</Arg> <Arg> - <New class="org.apache.tomcat.jdbc.pool.DataSource"> + <New class="com.zaxxer.hikari.HikariDataSource"> <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="jdbcUrl">jdbc:derby:<SystemProperty name="appserver.base" default=".."/>/data/databases/users</Set> <Set name="username">sa</Set> </New> </Arg> </New> - + --> </Configure> |