Skip to content

Commit

Permalink
[GEOS-11260] JNDI tutorial uses outdated syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
aaime authored and jodygarnett committed Feb 12, 2024
1 parent dc9ff1c commit 55870bb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions doc/en/user/source/tutorials/tomcat-jndi/tomcat-jndi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Once that is done, the Tomcat configuration file :file:`{TOMCAT_HOME}/conf/conte
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@localhost:1521:xe"
username="xxxxx" password="xxxxxx"
maxActive="20"
maxTotal="20"
initialSize="0"
minIdle="0"
maxIdle="8"
Expand All @@ -44,6 +44,8 @@ Once that is done, the Tomcat configuration file :file:`{TOMCAT_HOME}/conf/conte
/>
</Context>
.. note:: The above configuration is valid for Tomcat 8+, while Tomcat 7.x would use ``maxActive`` in place of ``maxTotal``.


The example sets up a connection pool connecting to the local Oracle XE instance.
The pool configuration shows is quite full-fledged:
Expand Down Expand Up @@ -113,7 +115,7 @@ Then the following code must be added to the Tomcat configuration file :file:`{T
driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://localhost:5432/test"
username="xxxxx" password="xxxxxx"
maxActive="20"
maxTotal="20"
initialSize="0"
minIdle="0"
maxIdle="8"
Expand Down Expand Up @@ -160,7 +162,7 @@ Then the following code must be written in the Tomcat configuration file :file:`
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://localhost:1433;databaseName=test;user=admin;password=admin;"
username="admin" password="admin"
maxActive="20"
maxTotal="20"
initialSize="0"
minIdle="0"
maxIdle="8"
Expand Down

0 comments on commit 55870bb

Please sign in to comment.