<?xml version="1.0" encoding="UTF-8"?>
<Context>
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
    <WatchedResource>WEB-INF/tomcat-web.xml</WatchedResource>
    <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
    <Environment name="spring.config.location" value="file:/opt/tomcat/rdap/rdap.properties" type="java.lang.String"/>
    <Resource name="registrydb" auth="Container" 
               type="javax.sql.DataSource" 
               driverClassName="org.postgresql.Driver" 
               url="jdbc:postgresql://127.0.0.1:5432/registry" 
               username="*****" 
	    	   password="*****"
	           maxTotal="50"
               maxWaitMillis="10000"   
               maxIdle="20" 
	           minIdle="10"
	           initialSize="10" 
	           testOnBorrow="true"
               testWhileIdle="true"
               validationQuery="SELECT 1"
               timeBetweenEvictionRunsMillis="30000"
	           minEvictableIdleTimeMillis="60000"
	           removeAbandoned="true"
               removeAbandonedTimeout="60"
	           logAbandoned="true"
	           testOnReturn="false"
	           numTestsPerEvictionRun="3"/>
</Context>
