# Using a Custom Connection Pool Manager

In Business Components for Java, the default connection pool manager is an oracle.jbo.server.ConnectionPoolManagerImpl object, which implements the oracle.jbo.ConnectionPoolManager interface.

You might want to implement a custom connection pool manager if you have an existing connection pool manager you want to use or need special functionality not provided by the default connection pool manager.

#### To create and use a custom connection pool manager:

1. Implement the oracle.jbo.ConnectionPoolManager interface in your custom connection pool manager.

   See the Javadoc for more information on this interface and where to find the default connection pool manager.

2. Specify the custom connection pool manager (a fully qualified class name) by using the jbo.ConnectionPoolManager Java VM parameter or jboservers.properties property.

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

> > > >     -Djbo.ConnectionPoolManager=oracle.jbo.server.ConnectionPoolManagerImpl

> > > > This directive specifies the default connection pool manager.

- Alternatively, you can enter a line in the jboserver.properties file, which is stored in \lib\jbomt.zip. You can deploy the custom jboserver.properties with customer application. Be sure that the zip file and file path that includes the customer's version of jboserver.properties appears on the application classpath before jbomt.zip

> > > >     jbo.ConnectionPoolManager=oracle.jbo.server.ConnectionPoolManagerImpl

Related topics
Pooling Connections
Enabling and Disabling Connection Pooling
Setting the Maximum Number of Pool Connections
Setting the Initial Number of Pool Connections

About Connection Pooling