|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
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");
Method Detail |
---|
void setPool(ConnectionPool pool) throws ConnectionException
pool
- The Connection Pool in which this Poolable artifact will participate in pooling.ConnectionException
void release() throws ConnectionException
ConnectionException
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |