Methods Summary |
---|
public boolean | getAllowNonComponentCallers()A pool with this property set to true, can be used by
non-J2EE components (i.e components other than EJBs or
Servlets). The returned connection is enlisted automatically
with the transaction context obtained from the transaction
manager. This property is to enable the pool to be used by
non-component callers such as ServletFilters, Lifecycle
modules, and 3rd party persistence managers. Standard J2EE
components can continue to use such pools. Connections
obtained by non-component callers are not automatically
cleaned at the end of a transaction by the container. They
need to be explicitly closed by the the caller.
|
public java.lang.String | getAssociateWithThread()associate-with-thread (boolean)
Associate a connection with the thread such that when the
same thread is in need of a connection, it can reuse the connection
already associated with that thread, thereby not incurring the overhead
of getting a connection from the pool. Default value is false.
|
public java.lang.String | getConnectionCreationRetryAttempts()connection-creation-retry-attempts (integer)
The number of attempts to create a new connection. Default is 0, which
implies no retries.
|
public java.lang.String | getConnectionCreationRetryIntervalInSeconds()connection-creation-retry-interval-in-seconds (integer)
The time interval between retries while attempting to create a connection
Default is 10 seconds. Effective when connection-creation-retry-attempts is
greater than 0.
|
public java.lang.String | getConnectionLeakReclaim()connection-leak-reclaim (boolean)
If enabled, connection will be re-usable (put back to pool) after
connection-leak-timeout-in-seconds occurs. Default value is false.
|
public java.lang.String | getConnectionLeakTimeoutInSeconds()connection-leak-timeout-in-seconds (integer)
To aid user in detecting potential connection leaks by the application.
When a connection is not returned back to the pool by the application
within the specified period, it is assumed to be a potential leak and
stack trace of the caller will be logged. Default is 0 seconds, which
implies there is no leak detection, by default. A non-zero value turns
on leak tracing.
|
public java.lang.String | getConnectionValidationMethod()
|
public java.lang.String | getDatasourceClassname()
|
public boolean | getFailAllConnections()
|
public java.lang.String | getIdleTimeoutInSeconds()
|
public boolean | getIsConnectionValidationRequired()
|
public boolean | getIsIsolationLevelGuaranteed()
|
public java.lang.String | getLazyConnectionAssociation()lazy-connection-association (boolean)
Connections are lazily associated when an operation is performed on
them. Also they are disassociated when the transaction is completed
and a component method ends, which helps to reuse the physical
connections. Default value is false.
|
public java.lang.String | getLazyConnectionEnlistment()lazy-connection-enlistment (boolean)
Enlist a resource to the transaction only when it is actually used in
a method, which avoids enlistment of connections, that are not used,
in a transaction. This also prevents unnecessary enlistment of connections
cached in the calling components. Default value is false.
|
public java.lang.String | getMatchConnections()match-connections (boolean)
To switch on/off connection matching for the pool. It can be set to false if the
administrator knows that the connections in the pool
will always be homogeneous and hence a connection picked from the pool
need not be matched by the resource adapter. Default value is true.
|
public java.lang.String | getMaxConnectionUsageCount()max-connection-usage-count
When specified, connections will be re-used by the pool for the specified number
of times after which it will be closed. eg : To avoid statement-leaks.
Default value is 0, which implies the feature is not enabled.
|
public java.lang.String | getMaxPoolSize()
|
public java.lang.String | getMaxWaitTimeInMillis()
|
public boolean | getNonTransactionalConnections()A pool with this property set to true returns
non-transactional connections. This connection does not get
automatically enlisted with the transaction manager.
|
public java.lang.String | getPoolResizeQuantity()
|
public java.lang.String | getResType()
|
public java.lang.String | getStatementTimeoutInSeconds()associate-with-thread (integer)
|
public java.lang.String | getSteadyPoolSize()
|
public java.lang.String | getTransactionIsolationLevel()
|
public java.lang.String | getValidateAtMostOncePeriodInSeconds()validate-atmost-once-period-in-seconds (integer)
Used to set the time-interval within which a connection is validated atmost once.
Default is 0 seconds, not enabled.
|
public java.lang.String | getValidationTableName()
|
public java.lang.String | getWrapJDBCObjects()wrap-jdbc-objects (boolean)
When set to true, application will get wrapped jdbc objects for Statement,
PreparedStatement, CallableStatement, ResultSet, DatabaseMetaData.
|
public void | setAllowNonComponentCallers(boolean enabled)
|
public void | setAssociateWithThread(java.lang.String associate)
|
public void | setConnectionCreationRetryAttempts(java.lang.String count)
|
public void | setConnectionCreationRetryIntervalInSeconds(java.lang.String seconds)
|
public void | setConnectionLeakReclaim(java.lang.String reclaim)
|
public void | setConnectionLeakTimeoutInSeconds(java.lang.String timeout)
|
public void | setConnectionValidationMethod(java.lang.String value)
|
public void | setDatasourceClassname(java.lang.String value)
|
public void | setFailAllConnections(boolean value)
|
public void | setIdleTimeoutInSeconds(java.lang.String value)
|
public void | setIsConnectionValidationRequired(boolean value)
|
public void | setIsIsolationLevelGuaranteed(boolean value)
|
public void | setLazyConnectionAssociation(java.lang.String associate)
|
public void | setLazyConnectionEnlistment(java.lang.String enlist)
|
public void | setMatchConnections(java.lang.String match)
|
public void | setMaxConnectionUsageCount(java.lang.String count)
|
public void | setMaxPoolSize(java.lang.String value)
|
public void | setMaxWaitTimeInMillis(java.lang.String value)
|
public void | setNonTransactionalConnections(boolean enabled)
|
public void | setPoolResizeQuantity(java.lang.String value)
|
public void | setResType(java.lang.String value)
|
public void | setStatementTimeoutInSeconds(java.lang.String value)associate-with-thread (integer)
|
public void | setSteadyPoolSize(java.lang.String value)
|
public void | setTransactionIsolationLevel(java.lang.String value)See {@link IsolationValues}.
|
public void | setValidateAtMostOncePeriodInSeconds(java.lang.String seconds)
|
public void | setValidationTableName(java.lang.String value)
|
public void | setWrapJDBCObjects(java.lang.String wrap)
|