-
Notifications
You must be signed in to change notification settings - Fork 296
/
Copy pathcontext.xml
36 lines (35 loc) · 1.63 KB
/
context.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?xml version="1.0" encoding="UTF-8"?>
<Context>
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<Resource name="jdbc/scadalts"
auth="Container"
type="javax.sql.DataSource"
factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
testWhileIdle="true"
testOnBorrow="true"
testOnReturn="false"
validationQuery="/* ping */ SELECT 1"
validationInterval="30000"
timeBetweenEvictionRunsMillis="30000"
maxActive="80"
minIdle="10"
maxWait="10000"
initialSize="10"
removeAbandonedTimeout="1000"
removeAbandoned="true"
abandonWhenPercentageFull="75"
logAbandoned="true"
minEvictableIdleTimeMillis="30000"
jmxEnabled="true"
jdbcInterceptors="org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;
org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer;
org.apache.tomcat.jdbc.pool.interceptor.ResetAbandonedTimer;
org.apache.tomcat.jdbc.pool.interceptor.SlowQueryReport(threshold=1500)"
username="root"
password="root"
driverClassName="com.mysql.jdbc.Driver"
defaultTransactionIsolation="READ_COMMITTED"
connectionProperties="useSSL=false;allowPublicKeyRetrieval=true"
url="jdbc:mysql://database:3306/scadalts"
/>
</Context>