Skip to content

Commit 28e6527

Browse files
authored
Merge pull request #1909 from lat-lon/fix/documentationLegacyConnectionDeprecated-1906
Set legacy JdbcConnection format to deprecated
2 parents d367a29 + 02b9f0b commit 28e6527

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

deegree-core/deegree-core-db/src/main/resources/META-INF/schemas/jdbc/jdbc.xsd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<jaxb:package name="org.deegree.db.legacy.jaxb" />
1111
</jaxb:schemaBindings>
1212
</appinfo>
13+
<documentation>Deprecated configuration format, use DataSourceConnectionProvider instead</documentation>
1314
</annotation>
1415
<element name="JDBCConnection">
1516
<complexType>

deegree-documentation/src/main/asciidoc/serverconnections.adoc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ org.deegree.sqldialect.postgis.PostGISDialectProvider)
366366

367367
By default, the https://commons.apache.org/proper/commons-dbcp/[Apache Commons DBCP connection pool library] is provided with deegree webservices WAR file. In some cases you may consider another implementation as more appropriate to use. The following examples show how to use other connection pool provider. Keep in mind to add the mentioned libraries to the same classpath as the JDBC driver.
368368

369-
==== PostgreSQL JDBC
369+
===== PostgreSQL JDBC
370370

371371
The PostgreSQL JDBC driver provides two DataSource implementations which support, among other things, the configuration for multiple hosts. Read further in the https://jdbc.postgresql.org/documentation/datasource/[PostgreSQL JDBC driver documentation].
372372
This DataSource implementation requires the official PostgreSQL JDBC driver on the classpath.
@@ -389,7 +389,7 @@ Download the driver from: https://jdbc.postgresql.org/download/
389389
</DataSourceConnectionProvider>
390390
----
391391

392-
==== HikariCP
392+
===== Hikari Connection Pool
393393

394394
The HikariCP project states that the implementation is a "zero-overhead" production ready JDBC connection pool and very lightweight.
395395

@@ -411,7 +411,7 @@ Download the connection pool from: https://github.com/brettwooldridge/HikariCP
411411
</DataSourceConnectionProvider>
412412
----
413413

414-
===== c3p0
414+
===== c3p0 Connection Pool
415415

416416
The c3p0 project states that the implementation is an easy-to-use library for making traditional JDBC drivers "enterprise-ready" by augmenting them with functionality defined by the JDBC 3 and 4 specs and the optional extensions to JDBC 2.
417417

@@ -452,6 +452,8 @@ is called 'inspire', the database user is 'postgres' and password is
452452
</JDBCConnection>
453453
----
454454

455+
WARNING: When using this legacy configuration the connection pool size is hard coded to 5 connections as the minimal pool size and 25 connections as the maximum pool size.
456+
455457
The legacy connection config file format is defined by schema file
456458
https://schemas.deegree.org/core/3.6/jdbc/jdbc.xsd. The root element is
457459
_JDBCConnection_. The following table lists the available configuration options. When
@@ -465,6 +467,8 @@ specifying them, their order must be respected.
465467
|Password |1..1 |String |DB password
466468
|===
467469

470+
IMPORTANT: This configuration format is deprecated and will be removed in future versions. Switch to one of the described <<anchor-configuration-jdbc,JDBC connections>> using the `DataSourceConnectionProvider` instead.
471+
468472
=== Remote OWS connections
469473

470474
Remote OWS connections are typically configured with a capabilities

deegree-documentation/src/main/asciidoc/webservices.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ The implementation of the visibility inspector checks whether a requested layer
12401240
Of course, also non category layers can be configured here, but for most use cases category layers will be more useful.
12411241
If no _CategoryLayerIdentifier_ are configured, the VisibilityInspector is applied to all layers.
12421242

1243-
Note: If a _CategoryLayerIdentifier_ is configured, the visibility inspector will just be executed if exactly this layer is requested. Still, as already stated above, the visibility inspector is applied to the requested layer plus all of its sublayers.
1243+
NOTE: If a _CategoryLayerIdentifier_ is configured, the visibility inspector will just be executed if exactly this layer is requested. Still, as already stated above, the visibility inspector is applied to the requested layer plus all of its sublayers.
12441244
If just one or more sublayers of the configured _CategoryLayerIdentifier_ are requested, the visibility inspector is NOT applied.
12451245
This behaviour prevents that complex analyses and/or functions are executed during each GetMap request.
12461246

0 commit comments

Comments
 (0)