-
Notifications
You must be signed in to change notification settings - Fork 0
/
context.xml
44 lines (40 loc) · 1.45 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
37
38
39
40
41
42
43
44
<?xml version="1.0" encoding="UTF-8"?>
<Context displayName="MIRIAM Registry ([VERSION])" docBase="[PATH_WAR]">
<Resource name="mail/Session" type="javax.mail.Session" auth="Container" />
<ResourceParams name="mail/Session">
<parameter>
<name>mail.smtp.host</name>
<value>localhost</value>
</parameter>
</ResourceParams>
<Resource name="jdbc/miriam"
url="jdbc:mysql://[SERVER]:[PORT]/[REGISTRY_DATABASE]?autoReconnect=true"
username="[REGISTRY_USER]"
password="[REGISTRY_PASS]"
auth="Container"
type="javax.sql.DataSource"
removeAbandoned="true"
removeAbandonedTimeout="60"
autoReconnect="true"
maxActive="30"
maxIdle="10"
maxWait="10000"
driverClassName="com.mysql.jdbc.Driver"
testOnBorrow="true"
validationQuery="SELECT '1'" />
<Resource name="jdbc/auth"
url="jdbc:mysql://[SERVER]:[PORT]/[AUTH_DATABASE]?autoReconnect=true"
username="[AUTH_USER]"
password="[AUTH_PASS]"
auth="Container"
type="javax.sql.DataSource"
removeAbandoned="true"
removeAbandonedTimeout="60"
autoReconnect="true"
maxActive="30"
maxIdle="10"
maxWait="10000"
driverClassName="com.mysql.jdbc.Driver"
testOnBorrow="true"
validationQuery="SELECT '1'" />
</Context>