IBM E02HMLL-I Implementation Guide - Page 165
Deleting, database, connection, objects, Using, pools, collaborations, Configuring, transaction,
View all IBM E02HMLL-I manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 165 highlights
2. In the "New Connection Pool" pane, right-click the connection object for which you want to change the minimum number of connections and select Edit from the context menu. 3. Type the new value in the Minimum connections field. 4. Click OK. Deleting database connection objects Do the following to delete a database connection object: 1. Access the properties of the database connection pool as described in "Modifying database connection pools" on page 151. 2. In the "New Connection Pool" pane, right-click the connection object you want to delete and select Delete from the context menu. 3. Click OK. Using database connection pools in collaborations and maps To use database connection pools in maps and collaboration templates, you use the getDBConnection() method in the BaseCollaboration class: CwDBConnection getDBConnection(String ConnectionPoolName); The string ConnectionPoolName must match exactly a pool name that you have created or will create in System Manager. If the name does not match exactly, or if you set connection pool name values in a collaboration template or map but do not create the database connection pool in System Manager, the collaboration object or map will fail. For collaborations, you can set pool names in a template either before or after you have created the collaboration objects from that template; you do not need to reconfigure new collaboration objects to match a new connection pool name. For more information on developing collaboration templates to use database connection pools, see the Collaboration Development Guide. For more information on developing maps to use database connection pools, see the Map Development Guide. Configuring transaction bracketing You can configure a collaboration or a map to use database connection pools in either Implicit Database Transaction mode (in which the transaction begins as soon as the connection is made and ends when the process is finished) or Explicit Database Transaction mode (in which you begin and end the transaction programmatically). To configure transaction bracketing for collaboration objects, see "Implicit database transaction" on page 168. To configure transaction bracketing for maps, see the Map Development Guide. Chapter 8. Configuring database connection pools 153