Setting the Connection Pool Wait Timeout

In Business Components for Java, you can specify a Java VM parameter (-D) or jboserver.properties property that sets the amount of time the connection pool manager will wait for an available connection when one isn't immediately available. The default is 30 seconds.

To set the connection pool wait timeout:

When you start the business logic tier's Java VM, include the following directive on the command line:

-Djbo.poolrequesttimeout=n

n is the amount of time, in milliseconds, from 0 to 2,147,483,647.

Alternatively, you can enter a line in the jboserver.properties file, which is stored in \lib\jbomt.zip:

jbo.poolrequesttimeout=n

To set Java VM parameters through project properties:

  1. In the Workspace view of the Navigator, right-click a business component project and choose Properties.

  2. In the Run/Debug panel, type the parameters in the Java VM Parameters field.

  3. Click OK.

    The values are added to the jboserver.properties file, which is stored in \lib\jbomt.zip.


Related topics
Pooling Connections
Enabling and Disabling Connection Pooling
Setting the Maximum Number of Pool Connections
Using a Custom Connection Pool Manager

About Connection Pooling