Exporting Generic Technology Connectors

Creating and Managing Generic Technology Connectors 21-41 Note the following: ■ Updating the ITResource parameters from the Design Console does not refresh the pool. Update values through the Administrative and User Console or through the APIs. ■ Avoid updating values when the pool is in use.

21.4.3 Getting and Releasing Connections from the Pool

Consumers of the Generic Connection Pool can invoke the ConnectionService to get pooled connections to the target, and also to return connections back to the pool. This example code gets a connection from the pool and returns it based on ITResource Name: import com.oracle.oim.gcp.exceptions.ConnectionServiceException; import com.oracle.oim.gcp.pool.ConnectionService; import com.oracle.oim.gcp.resourceconnection.ResourceConnection; public class ConnectionPoolClient { public void testConnectionString itResName { try{ Request for connection from the connection pool ConnectionService service = new ConnectionService; ResourceConnection myConnection = service.getConnectionitResName; myConnection is the connection use the connection... Release connection back to the connection pool Target supports only one connection Denotes whether the target system supports only one connection at a time. When set to true, irrespective of other properties, the following pool parameters are used: ■ Min Pool Size = 0 ■ Initial Pool Size = 0 ■ Max Pool Size = 1 Recommended default is false true if target can handle only one connection, false otherwise. ResourceConnection class definition The concrete implementation of the ResourceConnection class com.oracle.oim.ad.ADResourceCo nnectionImpl Native connection pool class definition The wrapper to the native pool mechanism that implements the GenericPool. Set a value only if the pool preference is set to Native. com.oracle.oim.ad.ADNativePool Pool excluded fields Comma-separated list of fields not needed for creating a connection. When any of the specified fields are updated, the GCP pool is not refreshed. Note: Fields in this list are not available as part of the HashMap parameter to the createConnection method. Recon TimeStamp,ADSync Enabled Table 21–6 Cont. ITResource Parameters Field Description Sample Value and Notes