Configure connection pooling

Connection pooling creates a pool of database connections that your applications can use to connect to the database, and can reduce the amount of resources dedicated to establishing and maintaining database connections. Because Web applications typically make more connections to a database than other applications, connection pooling is well suited to Web applications.

Use the administrative console to configure connection pooling

  1. Start the administrative console.
  2. Expand Resources and click JDBC Providers.
  3. Click the name of the JDBC provider that is associated with the data source for which you want to configure connection pooling.
  4. Click Data Sources.
  5. On the Data Sources page, click the name of the data source for which you want to configure connection pooling.
  6. Click Connection Pool.
  7. On the Connection Pools page, configure connection pooling settings.
  8. Click Apply or OK.
  9. Save the application server configuration.

Use wsadmin to configure connection pooling

To configure connection pooling with wsadmin, follow these steps:

  1. On the CL command line, run the STRQSH (Start Qshell) command.

  2. Run the cd command to change to the directory that contains the wsadmin tool:

    cd /QIBM/ProdData/WebASE51/ASE/bin
  3. Start wsadmin.

  4. At the wsadmin prompt, run this command to identify the parent ID:

    set newds [$AdminConfig getid
     /Cell:myCell/Node:myNode/Server:myAppSvr/
     JDBCProvider:JDBC1/DataSource:DS1/]

    where myCell is the name of the cell that contains your application server, myNode is the name of the node that contains your application server, myAppSvr is the name of your application server, JDBC1 is the name of your JDBC provider, and DS1 is the name of your the data source for which you want to create a connection pool.

  5. Note: This command has been wrapped for display purposes.

  6. Run this command to create a new connection pool:

    $AdminConfig create ConnectionPool $newds {}
  7. Run this command to save your changes:

    $AdminConfig save