Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

If you would like to use PostgreSQL, please keep in mind the class org.postgresql.Driver is a JDBC Driver, and not a JDBC DataSource.

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

To wire those up:

  • use org.postgresql.Driver as the driverClassName.

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

  • No labels