# Setting the Initial Number of Pool Connections

In Business Components for Java, you can specify a Java VM parameter (-D) or jboserver.properties property that sets the initial number of connections in the pool. The default is zero (0).

#### To set the initial pool size:

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

    -Djbo.initpoolsize=n

n is the number of connections in the pool, from 0 to 2,147,483,647. The number of connections is limited by the number of connections supported by your database driver.

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

    jbo.initpoolsize=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