Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PostgreSQL provides three JDBC DataSource implementations, namely; PGConnectionPoolDataSource, PGPoolingDataSource, and PGSimpleDataSource. However, their implementations for Their pooling data sources source implementations are deprecated, and you should use a more modern connection pooling implementation, such as those described in the Examples section.

To wire it those up:

  • use org.postgresql.Driver as the driverClassName.

  • use a JDBC URL based on the following format: jdbc:postgresql://[hostname]:[port]/[database][?properties]

...