--- layout: default_docs title: Application Servers ConnectionPoolDataSource header: Chapter 11. Connection Pools and Data Sources resource: media previoustitle: Chapter 11. Connection Pools and Data Sources previous: datasource.html nexttitle: Applications DataSource next: ds-ds.html --- PostgreSQL™ includes one implementation of `ConnectionPoolDataSource` named `org.postgresql.ds.PGConnectionPoolDataSource`. JDBC requires that a `ConnectionPoolDataSource` be configured via JavaBean properties, shown in [Table 11.1, “`ConnectionPoolDataSource` Configuration Properties”](ds-cpds.html#ds-cpds-props), so there are get and set methods for each of these properties. **Table 11.1. `ConnectionPoolDataSource` Configuration Properties**
Property | Type | Description |
---|---|---|
serverName | STRING | PostgreSQL™ database server host name |
databaseName | STRING | PostgreSQL™ database name |
portNumber | INT | TCP port which the PostgreSQL™ database server is listening on (or 0 to use the default port) |
user | STRING | User used to make database connections |
password | STRING | Password used to make database connections |
ssl | BOOLEAN | If `true`, use SSL encrypted connections (default `false`) |
sslfactory | STRING | Custom `javax.net.ssl.SSLSocketFactory` class name (see the section called [“Custom SSLSocketFactory”](ssl-factory.html)) |
defaultAutoCommit | BOOLEAN | Whether connections should have autocommit enabled or disabled when they are supplied to the caller. The default is `false`, to disable autocommit. |