Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.2.0)

E17483-03


oracle.adf.model.connection.pool
Interface Poolable


public interface Poolable

Field Summary
static java.lang.String POOLABLE_CONNECTIONS
           This property controls the factory behaviour on how connections are produced.

 

Method Summary
 void release()
          Release the poolable artifact back to the pool, to be recycled for other clients.
 void setPool(ConnectionPool pool)
          Set the Controlling pool on this poolable artifact.

 

Field Detail

POOLABLE_CONNECTIONS

static final java.lang.String POOLABLE_CONNECTIONS

This property controls the factory behaviour on how connections are produced. If this property is set, then the factory pools the instances of the connections and provides the client with the recycled instances.

If The property has the value true, then the pooling is enabled. Set the value to false to disable the factory from pooling the connection instances.

This property must be set on the owning connections context. Clients can use property as Hashtable env = new Hashtable(); ... put the other context properties env.put(Poolable.POOLABLE_CONNECTIONS, "false"); Context ctx = new InitialContext(env); alternatively, this property can be added to the context as ctx.addToEnvironment(Poolable.POOLABLE_CONNECTIONS, "false");

See Also:
Constant Field Values

Method Detail

setPool

void setPool(ConnectionPool pool)
             throws ConnectionException
Set the Controlling pool on this poolable artifact.
Parameters:
pool - The Connection Pool in which this Poolable artifact will participate in pooling.
Throws:
ConnectionException

release

void release()
             throws ConnectionException
Release the poolable artifact back to the pool, to be recycled for other clients.
Throws:
ConnectionException

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.2.0)

E17483-03


Copyright © 1997, 2012, Oracle. All rights reserved.