forked from jkutner/heroku-buildpack-wildfly
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstandalone.xml.patch
30 lines (30 loc) · 1.73 KB
/
standalone.xml.patch
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
--- template/standalone.xml 2018-09-27 11:31:00.000000000 -0400
+++ standalone.xml 2018-09-27 10:54:09.000000000 -0400
@@ -148,6 +148,27 @@
<password>sa</password>
</security>
</datasource>
+ <datasource jta="true" jndi-name="java:jboss/datasources/MySQLDS" pool-name="MySQLDS" enabled="true" use-ccm="false">
+ <connection-url>${env.MYSQL_DB_HOST}</connection-url>
+ <driver-class>com.mysql.cj.jdbc.Driver</driver-class>
+ <driver>mysql</driver>
+ <pool>
+ <min-pool-size>5</min-pool-size>
+ <max-pool-size>10</max-pool-size>
+ <prefill>false</prefill>
+ <use-strict-min>false</use-strict-min>
+ <flush-strategy>IdleConnections</flush-strategy>
+ </pool>
+ <security>
+ <user-name>${env.MYSQL_DB_USER}</user-name>
+ <password>${env.MYSQL_DB_PASS}</password>
+ </security>
+ <validation>
+ <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker"/>
+ <background-validation>true</background-validation>
+ <exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLExceptionSorter"/>
+ </validation>
+ </datasource>
<drivers>
<driver name="h2" module="com.h2database.h2">
<xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>