# Enabling and Disabling Connection Pooling

In Business Components for Java, if you disable connection pooling, there will be one connection per application module instance. The connection is destroyed when the application module instance disconnects. This was the behavior prior to version 3.2 of Business Components for Java.

#### To disable connection pooling:

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

    -Djbo.maxpoolsize=0

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

    jbo.maxpoolsize=0

#### To enable connection pooling:

Make sure the maxpoolsize is not zero (0), but a number from 1 to 2,000,000. The default is 2,000,000, limited by the number of connections supported by your database driver. See Setting the Maximum Number of Pool Connections.

#### 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
Setting the Maximum Number of Pool Connections
Setting the Initial Number of Pool Connections
Using a Custom Connection Pool Manager

About Connection Pooling