Skip to content

Commit 80fda8c

Browse files
authored
Added UCP datasource
1 parent 766e67f commit 80fda8c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

java/jdbc/Tomcat_Servlet/META-INF/context.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,20 @@
77
url="jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(HOST=myhost)(PORT=1521)(PROTOCOL=tcp))(CONNECT_DATA=(SERVICE_NAME=myorcldbservicename)))"
88

99
/>
10+
11+
<!-- Database resource for connecting to Autonomous Transaction Processing (ATP) -->
12+
<Resource name="tomcat/UCP_atp" auth="Container"
13+
factory="oracle.ucp.jdbc.PoolDataSourceImpl"
14+
type="oracle.ucp.jdbc.PoolDataSource"
15+
description="UCP Pool in Tomcat"
16+
connectionFactoryClassName="oracle.jdbc.pool.OracleDataSource"
17+
minPoolSize="5"
18+
maxPoolSize="50"
19+
initialPoolSize="15"
20+
user="jdbcuser"
21+
password="XXXXXXX
22+
url="jdbc:oracle:thin:@orcldbtest_medium?TNS_ADMIN=/Users/test/ATPTesting/wallet_ORCLDBTEST"
23+
/>
1024
1125
</Context>
1226

0 commit comments

Comments
 (0)