Elffuss BraidHub

kikocis/EDC public

main · 4.7 KiBSourceRawPermalink

SQL Pool Apache Commons Pool

This extension registers named javax.sql.DataSources to the org.eclipse.edc.transaction.datasource.spi.DataSourceRegistry capable of pooling java.sql.Connections. The pooling mechanism is backed by the Apache Commons Pool library.

Old Configuration (Deprecated since 0.3.1)

KeyDescriptionMandatory
edc.datasource.<datasource_name>.urlJDBC driver urlX
edc.datasource.<datasource_name>.pool.maxIdleConnectionsThe maximum amount of idling connections maintained by the pool
edc.datasource.<datasource_name>.pool.maxTotalConnectionsThe maximum amount of total connections maintained by the pool
edc.datasource.<datasource_name>.pool.minIdleConnectionsThe minimum amount of idling connections maintained by the pool
edc.datasource.<datasource_name>.pool.testConnectionOnBorrowFlag to define whether connections will be validated when a connection has been obtained from the pool
edc.datasource.<datasource_name>.pool.testConnectionOnCreateFlag to define whether connections will be validated when a connection has been established
edc.datasource.<datasource_name>.pool.testConnectionOnReturnFlag to define whether connections will be validated when a connection has been returned to the pool
edc.datasource.<datasource_name>.pool.testConnectionWhileIdleFlag to define whether idling connections will be validated
edc.datasource.<datasource_name>.pool.testQueryTest query to validate a connection maintained by the pool
edc.datasource.<datasource_name>.<jdbc_properties>JDBC driver specific configuration properties

New Configuration (since 0.3.1)

KeyDescriptionMandatory
edc.datasource.<datasource_name>.urlJDBC driver urlX
edc.datasource.<datasource_name>.pool.connections.max-idleThe maximum amount of idling connections maintained by the pool
edc.datasource.<datasource_name>.pool.connections.max-totalThe maximum amount of total connections maintained by the pool
edc.datasource.<datasource_name>.pool.connections.min-idleThe minimum amount of idling connections maintained by the pool
edc.datasource.<datasource_name>.pool.connection.test.on-borrowFlag to define whether connections will be validated when a connection has been obtained from the pool
edc.datasource.<datasource_name>.pool.connection.test.on-createFlag to define whether connections will be validated when a connection has been established
edc.datasource.<datasource_name>.pool.connection.test.on-returnFlag to define whether connections will be validated when a connection has been returned to the pool
edc.datasource.<datasource_name>.pool.connection.test.while-idleFlag to define whether idling connections will be validated
edc.datasource.<datasource_name>.pool.connection.test.queryTest query to validate a connection maintained by the pool
edc.datasource.<datasource_name>.<jdbc_properties>JDBC driver specific configuration properties