public interface Poolable
|Modifier and Type||Field and Description|
This property controls the factory behaviour on how connections are produced.
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
This property must be set on the owning connections context. Clients can use
Hashtable env = new Hashtable();
... put the other context properties
Context ctx = new InitialContext(env);
alternatively, this property can be added to the context as
void setPool(ConnectionPool pool) throws ConnectionException
pool- The Connection Pool in which this Poolable artifact will participate in pooling.