forked from frankframework/frankframework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
context.xml
191 lines (166 loc) · 6.46 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<?xml version="1.0" encoding="UTF-8"?>
<Context>
<JarScanner scanClassPath="false" scanAllFiles="false" scanAllDirectories="false"/>
<!--
Support for XA using BTM requires JDBC datasources to be configured via
factory="org.apache.naming.factory.BeanFactory" and a proper XADataSource classname.
Configuration via driverClassName only works for the standard transaction manager.
-->
<!-- IbisProp table has a column named VALUE. VALUE is a keyword in h2 db. -->
<Resource
name="jdbc/ibis4test-h2"
factory="org.apache.naming.factory.BeanFactory"
type="org.h2.jdbcx.JdbcDataSource"
URL="jdbc:h2:mem:ibis4test;NON_KEYWORDS=VALUE;DB_CLOSE_ON_EXIT=FALSE;DB_CLOSE_DELAY=-1;TRACE_LEVEL_FILE=0;"
/>
<Resource
name="jdbc/ibis4test-oracle-xe"
type="javax.sql.DataSource"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@localhost:1521:xe"
username="${testiaf_user/username:-testiaf_user}"
password="${testiaf_user/password:-testiaf_user00}"
maxTotal="10"
maxWaitMillis="5000"
/>
<Resource
name="jdbc/ibis4test-oracle"
factory="org.apache.naming.factory.BeanFactory"
type="oracle.jdbc.xa.client.OracleXADataSource"
URL="jdbc:oracle:thin:@host.docker.internal:1521:XE"
user="${testiaf_user/username:-testiaf_user}"
password="${testiaf_user/password:-testiaf_user00}"
/>
<Resource
name="jdbc/ibis4test-mssql"
auth="Container"
factory="org.apache.naming.factory.BeanFactory"
type="com.microsoft.sqlserver.jdbc.SQLServerXADataSource"
URL="jdbc:sqlserver://host.docker.internal:1433;database=testiaf"
user="${testiaf_user/username:-testiaf_user}"
password="${testiaf_user/password:-testiaf_user00}"
sendStringParametersAsUnicode="false"
sendTimeAsDatetime="true"
selectMethod="direct"
responseBuffering="adaptive"
packetSize="4096"
loginTimeout="10"
lockTimeout="2000"
lastUpdateCount="false"
encrypt="false"
disableStatementPooling="true"
applicationName="iaf-test on TomCat"
applicationIntent="readwrite"
/>
<!-- serverTimezone is set for docker instances -->
<Resource
name="jdbc/ibis4test-mysql"
factory="org.apache.naming.factory.BeanFactory"
type="com.mysql.cj.jdbc.MysqlXADataSource"
URL="jdbc:mysql://host.docker.internal:3307/testiaf"
user="${testiaf_user/username:-testiaf_user}"
password="${testiaf_user/password:-testiaf_user00}"
sslMode="DISABLED"
serverTimezone="Europe/Amsterdam"
allowPublicKeyRetrieval="true"
pinGlobalTxToPhysicalConnection="true"
socketTimeout="5000"
/>
<!-- pinGlobalTxToPhysicalConnection appears to be required to avoid locking problems under XA -->
<!-- Use MySQL driver for MariaDB for proper XA support. --> <!-- serverTimezone is set for docker instances -->
<Resource
name="jdbc/ibis4test-mariadb"
factory="org.apache.naming.factory.BeanFactory"
type="com.mysql.cj.jdbc.MysqlXADataSource"
URL="jdbc:mysql://host.docker.internal:3306/testiaf"
user="${testiaf_user/username:-testiaf_user}"
password="${testiaf_user/password:-testiaf_user00}"
sslMode="DISABLED"
serverTimezone="Europe/Amsterdam"
allowPublicKeyRetrieval="true"
pinGlobalTxToPhysicalConnection="true"
socketTimeout="5000"
/>
<!--
<Resource
name="jdbc/ibis4test-mariadb"
factory="org.apache.naming.factory.BeanFactory"
type="org.mariadb.jdbc.MariaDbDataSource"
user="testiaf_user"
password="testiaf_user00"
url="jdbc:mariadb://host.docker.internal:3306/testiaf?pinGlobalTxToPhysicalConnection=true"
/>
-->
<!-- pinGlobalTxToPhysicalConnection does not work the same for mariadb as it does for mysql, therefor still locking problems under XA for mariadb -->
<Resource
name="jdbc/ibis4test-postgres-xa"
factory="org.apache.naming.factory.BeanFactory"
type="org.postgresql.xa.PGXADataSource"
URL="jdbc:postgresql://host.docker.internal:5432/testiaf"
user="${testiaf_user/username:-testiaf_user}"
password="${testiaf_user/password:-testiaf_user00}"
/>
<Resource name="jdbc/ibis4test-postgres" auth="Container"
type="javax.sql.DataSource"
driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://host.docker.internal:5432/testiaf"
username="${testiaf_user/username:-testiaf_user}"
password="${testiaf_user/password:-testiaf_user00}"
maxTotal="10"
maxWaitMillis="5000"
/>
<Resource
name="mongodb/ibis4test"
type="com.mongodb.MongoClient"
factory="com.mongodb.client.MongoClientFactory"
connectionString="mongodb://testiaf_user:[email protected]"
auth="Container"
singleton="true"
/>
<!-- Tibco crendentials can be set here via 'userName' and 'userPassword' attributes, or in the jmsRealm via authAlias (not via username and password) -->
<Resource
name="jms/qcf_tibco_esb_ff"
factory="nl.nn.adapterframework.jndi.TomcatJndiProxy"
delegate_name="SLXHP_Queue_ConnectionFactory"
delegate_jndiProperties="TibcoJndi.properties"
delegate_providerURL="tibjmsnaming://DEVESBLARGEDC1:37243,tibjmsnaming://DEVESBLARGEDC2:37243"
userName="IBIS_AWS_POC_USER"
userPassword="xxxxxxxxx"
SSLEnableVerifyHost="false"
/>
<Resource
name="jms/qcf_tibco_esb_rr"
factory="nl.nn.adapterframework.jndi.TomcatJndiProxy"
delegate_name="SLNHN_Queue_ConnectionFactory"
delegate_jndiProperties="TibcoJndi.properties"
delegate_providerURL="tibjmsnaming://DEVESBSMALLDC1:37243,tibjmsnaming://DEVESBSMALLDC2:37243"
userName="IBIS_AWS_POC_USER"
userPassword="xxxxxxxxx"
SSLEnableVerifyHost="false"
/>
<Resource
name="jms/GetMessageRequest"
factory="nl.nn.adapterframework.jndi.TomcatJndiProxy"
delegate_name="ESB.Infrastructure.TS.Test.TestIAF.1.GetMessage.1.Request"
delegate_jndiProperties="TibcoJndi.properties"
delegate_providerURL="tibjmsnaming://DEVESBSMALLDC1:37243,tibjmsnaming://DEVESBSMALLDC2:37243"
/>
<Resource
name="jms/UpdateMessageAction"
factory="nl.nn.adapterframework.jndi.TomcatJndiProxy"
delegate_name="ESB.Infrastructure.TS.Test.TestIAF.1.UpdateMessage.1.Action"
delegate_jndiProperties="TibcoJndi.properties"
delegate_providerURL="tibjmsnaming://DEVESBLARGEDC1:37243,tibjmsnaming://DEVESBLARGEDC2:37243"
/>
<Resource name="jms/qcf-activemq"
factory="org.apache.naming.factory.BeanFactory"
type="org.apache.activemq.ActiveMQXAConnectionFactory"
brokerURL="tcp://host.docker.internal:61616?jms.xaAckMode=1"
/>
<!-- Activemq-artemis resource configuration -->
<Resource name="jms/qcf-artemis"
factory="org.apache.naming.factory.BeanFactory"
type="org.apache.activemq.artemis.jms.client.ActiveMQXAConnectionFactory"
brokerURL="tcp://host.docker.internal:61615"
/>
</Context>