Skip to content

Commit aa6aa2b

Browse files
committed
docs: 📚update JNDI sample
1 parent ca697ca commit aa6aa2b

2 files changed

Lines changed: 18 additions & 13 deletions

File tree

‎JNDI-SAMPLE.XML‎

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22
<!-- Copy jar of driverClass/JNDIFactory to tomcat lib -->
33
<!-- If you want to change db pool factory, add this factory="com.zaxxer.hikari.HikariJNDIFactory" -->
44
<!-- How to use a JNDI data source with the Crystal Reports Java SDK on Tomcat https://userapps.support.sap.com/sap/support/knowledge/en/1343290 -->
5-
<Resource name="jdbc/SageDB" auth="Container"
6-
type="javax.sql.DataSource"
7-
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
8-
url="jdbc:sqlserver://server\instance;DatabaseName=dbname;trustServerCertificate=true"
9-
username="user"
10-
password="password"
11-
maxTotal="4"
12-
maxIdle="2"
13-
initialSize="1"
14-
removeAbandonedOnBorrow="true"
15-
removeAbandonedOnMaintenance="true"
16-
removeAbandonedTimeout="60" />
5+
<Resource name="jdbc/SageDB" auth="Container"
6+
type="javax.sql.DataSource"
7+
factory="com.zaxxer.hikari.HikariJNDIFactory"
8+
minimumIdle="1"
9+
maximumPoolSize="4"
10+
connectionTimeout="300000"
11+
dataSourceClassName="com.microsoft.sqlserver.jdbc.SQLServerDataSource"
12+
dataSource.url="jdbc:sqlserver://server\instance;DatabaseName=dbname;trustServerCertificate=true"
13+
dataSource.user="user"
14+
dataSource.password="password" />

‎cspell.project-words.txt‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
crdb
2+
dbname
23
Dedienne
4+
Hikari
5+
isready
6+
javax
37
JDBC
48
jndi
59
logback
10+
PGPASSWORD
611
projectlombok
12+
psql
713
rawtypes
814
sageassistant
915
Servlet
1016
springframework
1117
Vals
12-
Xtreme
18+
Xtreme
19+
zaxxer

0 commit comments

Comments
 (0)