Versions Compared

Key

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

...

Three types of datasources can be configured in the Java web application: JDBC, ODBC and JNDI. A datasource must be defined in the

Include Page
_PropertiesFileJava
_PropertiesFileJava
 file. The Development plugin development tools component provides a web UI for modifying the properties file and can be used instead of editing the file directly.

...

Code Block
connection.datasource_name.sql.poolInitialSize=5

The parameters are:

ParameterDefaultDescription
poolInitialSize0The initial number of connections that are created when the pool is started.
poolMaxTotal8The maximum number of active connections that can be allocated from this pool at the same time, or negative for no limit.
poolMaxIdle8The maximum number of connections that can remain idle in the pool, without extra ones being released, or negative for no limit.
poolMinIdle0The minimum number of connections that can remain idle in the pool, without extra ones being created, or zero to create none.
poolMaxWait-1The maximum number of milliseconds that the pool will wait (when there are no available connections) for a connection to be returned before throwing an exception, or -1 to wait indefinitely.
Info
titleDisclaimer

The descriptions above and the default values are taken from the Apache Commons DBCP website.

...

Using the development plugin

Assuming the Development plugin development tools component is installed, the Settings widget can be started by using the button in the top right corner of the dashboard (see Using the development dashboard).

...