|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This bean defines a JDBC connection pool.
Fields inherited from class weblogic.management.configuration.DeploymentMBean |
CACHING_STUB_SVUID,
DEFAULT_ORDER,
MAX_ORDER,
MIN_ORDER |
Fields inherited from class weblogic.management.configuration.ConfigurationMBean |
CACHING_STUB_SVUID |
Method Summary | |
java.lang.String |
getACLName()
Deprecated. |
int |
getCapacityIncrement()
Increment by which the connection pool capacity is expanded. |
int |
getConnectionCreationRetryFrequencySeconds()
Gets the connectionCreationRetryFrequencySeconds attribute of the JDBCConnectionPoolMBean object |
int |
getConnectionReserveTimeoutSeconds()
The number of seconds after which a call to reserve a connection from the pool will timeout. |
java.lang.String |
getDriverName()
The full package name of the JDBC driver class used to create the physical connections between WebLogic Server and the DBMS for this connection pool. |
int |
getHighestNumUnavailable()
Gets the highestNumUnavailable attribute of the JDBCConnectionPoolMBean object |
int |
getHighestNumWaiters()
Gets the highestNumWaiters attribute of the JDBCConnectionPoolMBean object |
int |
getInactiveConnectionTimeoutSeconds()
Gets the inactiveConnectionTimeoutSeconds attribute of the JDBCConnectionPoolMBean object |
int |
getInitialCapacity()
The number of physical database connections to create when creating the connection pool. |
java.lang.String |
getInitTableName()
Gets the initTableName attribute of the JDBCConnectionPoolMBean object |
boolean |
getKeepLogicalConnOpenOnRelease()
|
boolean |
getKeepXAConnTillTxComplete()
|
int |
getLoginDelaySeconds()
The number of seconds to delay before creating each physical database connection. |
int |
getMaxCapacity()
Maximum number of physical database connections that this connection pool can contain. |
boolean |
getNeedTxCtxOnClose()
|
boolean |
getNewXAConnForCommit()
|
java.lang.String |
getPassword()
Returns the database password as set with setPassword()
or as a key=value pair in setProperties() . |
int |
getPreparedStatementCacheSize()
Deprecated. |
java.util.Properties |
getProperties()
The list of properties passed to the the JDBC Driver to use when creating physical database connections. |
int |
getRefreshMinutes()
Deprecated. |
int |
getShrinkFrequencySeconds()
Number of seconds to wait before shrinking a connection pool that has incrementally increased to meet demand. |
int |
getShrinkPeriodMinutes()
Deprecated. |
int |
getStatementCacheSize()
Returns size of the statement cache. |
java.lang.String |
getStatementCacheType()
Returns the algorithm being used to maintain the statement cache. |
boolean |
getSupportsLocalTransaction()
Set to true if the XA driver used to create physical database connections supports SQL without global transactions. |
boolean |
getTestConnectionsOnCreate()
Gets the TestConnectionsOnCreate attribute of the JDBCConnectionPoolMBean object |
boolean |
getTestConnectionsOnRelease()
Gets the TestConnectionsOnRelease attribute of the JDBCConnectionPoolMBean object |
boolean |
getTestConnectionsOnReserve()
Gets the TestConnectionsOnReserve attribute of the JDBCConnectionPoolMBean object |
int |
getTestFrequencySeconds()
The number of seconds between database connection tests. |
java.lang.String |
getTestTableName()
The name of the table used when testing a physical database connection. |
java.lang.String |
getURL()
Returns the database URL used to create the connections in this Connection Pool. |
boolean |
getXAEndOnlyOnce()
|
java.lang.String |
getXAPassword()
If set, this value overrides the password in the open string. |
boolean |
isConnLeakProfilingEnabled()
Returns if JDBC Connection leak profiling is enabled. |
boolean |
isShrinkingEnabled()
Indicates whether or not the pool can shrink back to its InitialCapacity when it is detected that connections
created during increased traffic are not being used. |
void |
setACLName(java.lang.String name)
Deprecated. |
void |
setCapacityIncrement(int capacity)
Increment by which the connection pool capacity is expanded. |
void |
setConnectionCreationRetryFrequencySeconds(int seconds)
The frequency of retry attempts by the pool to establish connections to the database. |
void |
setConnectionReserveTimeoutSeconds(int seconds)
The number of seconds after which a call to reserve a connection from the pool will timeout. |
void |
setConnLeakProfilingEnabled(boolean enable)
This property enables JDBC Connection leak profiling. |
void |
setDriverName(java.lang.String driverClassName)
The full package name of the JDBC driver class used to create the physical connections between the WebLogic Server and the DBMS for this connection pool. |
void |
setHighestNumUnavailable(int count)
The maximum number of connections in the pool that can be made unavailable (to an application) for purposes like refreshing the connection, etc. |
void |
setHighestNumWaiters(int count)
The maximum number of waiters that can concurrently block waiting to reserve a connection from the pool. |
void |
setInactiveConnectionTimeoutSeconds(int seconds)
The number of seconds of inactivity after which reserved connections will forcibly be released back into the pool. |
void |
setInitialCapacity(int capacity)
The number of physical database connections to create when creating the connection pool. |
void |
setInitTableName(java.lang.String table)
The name of the table used when initializing a physical database connection. |
void |
setKeepLogicalConnOpenOnRelease(boolean b)
Whether the logical JDBC connection is kept open when the physical XA connection is returned to the XA connection pool. |
void |
setKeepXAConnTillTxComplete(boolean b)
Set to true to force a connection pool to reserve a physical
connection and provide the same connection to an application
throughout transaction processing until the distributed transaction is
complete. |
void |
setLoginDelaySeconds(int secs)
The number of seconds to delay before creating each physical database connection. |
void |
setMaxCapacity(int capacity)
Maximum number of physical database connections that this connection pool can contain. |
void |
setNeedTxCtxOnClose(boolean b)
Set to true if the XA driver requires a distributed transaction
context when closing various JDBC objects, e.g. |
void |
setNewXAConnForCommit(boolean b)
Whether a dedicated XA connection is used for commit/rollback processing of a particular distributed transaction. |
void |
setPassword(java.lang.String password)
Password attribute passed to the JDBC driver when creating physical database connections. |
void |
setPreparedStatementCacheSize(int cacheSize)
Deprecated. @non-dynamic |
void |
setProperties(java.util.Properties props)
The list of properties passed to the the JDBC Driver to use when creating physical database connections. |
void |
setRefreshMinutes(int minutes)
Deprecated. |
void |
setShrinkFrequencySeconds(int seconds)
Number of seconds to wait before shrinking a connection pool that has incrementally increased to meet demand. |
void |
setShrinkingEnabled(boolean enable)
Indicates whether or not the pool can shrink back to its InitialCapacity when it is detected that connections
created during increased traffic are not being used. |
void |
setShrinkPeriodMinutes(int minutes)
Deprecated. |
void |
setStatementCacheSize(int cacheSize)
The number of Prepared and Callable Statements stored in the cache for further use. |
void |
setStatementCacheType(java.lang.String type)
The algorithm used to maintain the statement cache: LRU - After the statementCacheSize is met,
the Least Recently Used statement is removed when a new statement is used. |
void |
setSupportsLocalTransaction(boolean support)
Set to true if the XA driver used to create physical database connections supports SQL without global transactions. |
void |
setTestConnectionsOnCreate(boolean enable)
When set to true, WebLogic Server tests a connection after creating it and before adding it to the list of connections available to the client. |
void |
setTestConnectionsOnRelease(boolean enable)
When set to true, WebLogic Server tests a connection before returning it to the connection pool. |
void |
setTestConnectionsOnReserve(boolean enable)
When set to true, WebLogic Server tests a connection before giving it to the client. |
void |
setTestFrequencySeconds(int seconds)
The number of seconds between database connection tests. |
void |
setTestTableName(java.lang.String table)
The name of the table used when testing a physical database connection. |
void |
setURL(java.lang.String url)
The database URL used to create the connections in this connection pool. |
void |
setXAEndOnlyOnce(boolean b)
This property applies to XA connection pools only, and is ignored for non-XA driver. |
void |
setXAPassword(java.lang.String password)
If set, this value overrides the password in the open string. |
Methods inherited from interface weblogic.management.configuration.DeploymentMBean |
addTarget,
getDeploymentOrder,
getTargets,
removeTarget,
setDeploymentOrder,
setTargets |
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean |
freezeCurrentValue,
getNotes,
restoreDefaultValue,
setComments,
setDefaultedMBean,
setNotes,
setPersistenceEnabled |
Methods inherited from interface weblogic.management.WebLogicMBean |
getMBeanInfo,
getName,
getObjectName,
getParent,
getType,
isCachingDisabled,
isRegistered,
setName,
setParent |
Methods inherited from interface javax.management.DynamicMBean |
getAttribute,
getAttributes,
invoke,
setAttribute,
setAttributes |
Methods inherited from interface javax.management.MBeanRegistration |
postDeregister,
postRegister,
preRegister |
Methods inherited from interface javax.management.NotificationBroadcaster |
addNotificationListener,
getNotificationInfo,
removeNotificationListener |
Method Detail |
public void setConnLeakProfilingEnabled(boolean enable) throws javax.management.InvalidAttributeValueException
A Connection leak occurs when a connection from the pool is not closed explicitly by calling close() on that connection.
When connection leak profiling is active, the pool will store the stack trace at the time the Connection object is allocated from the pool and given to the client. When a connection leak is detected (when the Connection object is garbage collected), this stack trace is reported.
This feature uses extra resources and will likely slowdown Connection Pool operations, so it is not recommended for production use.
enable
- The new connLeakProfilingEnabled valuepublic boolean isConnLeakProfilingEnabled()
public java.lang.String getACLName()
public void setACLName(java.lang.String name) throws javax.management.InvalidAttributeValueException
reserve
and
admin
.
Reserve
permission allows users
to get logical connections from this connection pool.
Admin
permission allows all other operations on this connection
pool, including: reset, shrink, shutdown, disable, and enable.
Lack of an ACL allows any user open access (provided that the user passes other WLS security controls).
name
- The new aCLName valuepublic java.lang.String getURL()
public void setURL(java.lang.String url) throws javax.management.InvalidAttributeValueException
url
- The new uRL valuepublic java.lang.String getDriverName()
com.pointbase.jdbc.jdbcUniversalDriver
It must be the name of a class that implements the
java.sql.Driver
interface.
Check the documentation for the JDBC driver to find the full
pathname.
public void setDriverName(java.lang.String driverClassName) throws javax.management.InvalidAttributeValueException
com.pointbase.jdbc.jdbcUniversalDriver
It must be the name of a class that implements the
java.sql.Driver
interface.
Check the documentation for the JDBC driver to find the full
pathname.
driverClassName
- The new driverName valuepublic java.util.Properties getProperties()
user=scott;server=myDB
.
public void setProperties(java.util.Properties props) throws javax.management.InvalidAttributeValueException
user=scott;server=myDB
.
Note: BEA recommends that you use setPassword(String)
to specify the database password so that the value is stored in an
encrypted form in config.xml
and when displayed on the
administration console.
props
- The new properties valuepublic int getLoginDelaySeconds()
public void setLoginDelaySeconds(int secs) throws javax.management.InvalidAttributeValueException
secs
- The new loginDelaySeconds valuepublic int getInitialCapacity()
public void setInitialCapacity(int capacity) throws javax.management.InvalidAttributeValueException
capacity
- The new initialCapacity valuepublic int getMaxCapacity()
public void setMaxCapacity(int capacity) throws javax.management.InvalidAttributeValueException
capacity
- The new maxCapacity valuepublic int getCapacityIncrement()
MaxCapacity
.
public void setCapacityIncrement(int capacity) throws javax.management.InvalidAttributeValueException
MaxCapacity
.
capacity
- The new capacityIncrement valuepublic boolean isShrinkingEnabled()
InitialCapacity
when it is detected that connections
created during increased traffic are not being used.
When shrinking, the number of connections is reduced to the greater of either the initial capacity or the current number of connections in use.
public void setShrinkingEnabled(boolean enable) throws javax.management.InvalidAttributeValueException
InitialCapacity
when it is detected that connections
created during increased traffic are not being used.
When shrinking, the number of connections is reduced to the greater of either the initial capacity or the current number of connections in use.
enable
- The new shrinkingEnabled valuepublic int getShrinkPeriodMinutes()
ShrinkingEnabled
must be set to true for a
connection pool to shrink.
public void setShrinkPeriodMinutes(int minutes) throws javax.management.InvalidAttributeValueException
ShrinkingEnabled
must be set to true for a
connection pool to shrink.
minutes
- The new shrinkPeriodMinutes valuepublic int getShrinkFrequencySeconds()
ShrinkingEnabled
must be set to true for a
connection pool to shrink.
public void setShrinkFrequencySeconds(int seconds) throws javax.management.InvalidAttributeValueException
ShrinkingEnabled
must be set to true for a
connection pool to shrink.
seconds
- The new shrinkFrequencySeconds valuepublic int getRefreshMinutes()
RefreshMinutes
interval, unused database connections are
tested using TestTableName
. Connections that do not pass
the test will be closed and reopened to re-establish
a valid physical database connection. If
TestTableName
is not set, the test will not be
performed.
public void setRefreshMinutes(int minutes) throws javax.management.InvalidAttributeValueException
RefreshMinutes
interval, unused database connections are
tested using TestTableName
. Connections that do not pass
the test will be closed and reopened to re-establish
a valid physical database connection. If
TestTableName
is not set, the test will not be
performed.
minutes
- The new refreshMinutes valuepublic int getTestFrequencySeconds()
TestFrequencySeconds
interval, unused database connections
are tested using TestTableName
. Connections that do not pass
the test will be closed and reopened to re-establish a valid physical
database connection. If TestTableName
is not set, the
test will not be performed. Default implies feature is disabled.
public void setTestFrequencySeconds(int seconds) throws javax.management.InvalidAttributeValueException
TestFrequencySeconds
interval, unused database connections
are tested using TestTableName
. Connections that do not pass
the test will be closed and reopened to re-establish a valid physical
database connection. If TestTableName
is not set, the test
will not be performed. Default implies feature is disabled.
seconds
- The new testFrequencySeconds valuepublic java.lang.String getTestTableName()
"select count(*) from TestTableName"
The TestTableName
must exist and be accessible to
the database user for the connection. Most database servers
optimize this SQL to avoid a table scan, but it is still a good
idea to set TestTableName
to the name of a table
that is known to have few rows, or even no rows.
If TestTableName
begins with "SQL "
,
then the rest of the string following that leading token will be
taken as a literal sql statement that will be used to test a
connection.
public void setTestTableName(java.lang.String table) throws javax.management.InvalidAttributeValueException
"select count(*) from TestTableName"
The TestTableName
must exist and be accessible to
the database user for the connection. Most database servers
optimize this SQL to avoid a table scan, but it is still a good
idea to set TestTableName
to the name of a table
that is known to have few rows, or even no rows.
If TestTableName
begins with "SQL "
,
then the rest of the string following that leading token will be
taken as a literal sql statement that will be used to test a
connection.
table
- The new testTableName valuepublic void setTestConnectionsOnReserve(boolean enable) throws javax.management.InvalidAttributeValueException
The attribute TestTableName must be enabled for TestConnectionsOnReserve to be effective.
enable
- The new testConnectionsOnReserve valuesetTestTableName(java.lang.String)
public boolean getTestConnectionsOnReserve()
public void setTestConnectionsOnRelease(boolean enable) throws javax.management.InvalidAttributeValueException
enable
- The new testConnectionsOnRelease valuesetTestTableName(java.lang.String)
public boolean getTestConnectionsOnRelease()
public void setTestConnectionsOnCreate(boolean enable) throws javax.management.InvalidAttributeValueException
enable
- The new testConnectionsOnCreate valuesetTestTableName(java.lang.String)
public boolean getTestConnectionsOnCreate()
public java.lang.String getPassword()
setPassword()
or as a key=value pair in setProperties()
.
public void setPassword(java.lang.String password) throws javax.management.InvalidAttributeValueException
Properties
. The value is stored in an
encrypted form in the config.xml file and when displayed on the
administration console. Use this method to avoid storing
passwords in clear text in config.xml.
password
- The new password valuepublic java.lang.String getXAPassword()
Properties
.
public void setXAPassword(java.lang.String password) throws javax.management.InvalidAttributeValueException
Properties
.
password
- The new xAPassword valuepublic boolean getSupportsLocalTransaction()
This property applies to connection pools that use an XA driver only, and is ignored for connection pools that use non-XA drivers.
true
if XA driver supports SQL with no global transaction.public void setSupportsLocalTransaction(boolean support) throws javax.management.InvalidAttributeValueException
This property applies to connection pools that use an XA driver only, and is ignored for connection pools that use non-XA drivers.
support
- The new supportsLocalTransaction valuepublic boolean getKeepXAConnTillTxComplete()
true
if the XA connection pool associates
the same XA connection with the distributed transaction until the
transaction completes. This property applies to XA connection
pools only, and is ignored for non-XA driver. Its intention is
to workaround specific problems with third party vendor's XA
driver.public void setKeepXAConnTillTxComplete(boolean b) throws javax.management.InvalidAttributeValueException
true
to force a connection pool to reserve a physical
connection and provide the same connection to an application
throughout transaction processing until the distributed transaction is
complete.
This property applies to XA connection pools only, and is ignored for non-XA driver. Its intention is to workaround specific problems with third party vendor's XA driver.
b
- The new keepXAConnTillTxComplete valuepublic boolean getNeedTxCtxOnClose()
true
if the XA driver requires a distributed
transaction context when closing various JDBC objects,
e.g. result sets, statements, connections etc. If it is
specified to true, SQL exceptions that are thrown while closing
the JDBC objects in no transaction context will be swallowed.
This property applies to XA connection pools only, and is ignored
for non-XA driver. Its intention is to workaround specific
problems with third party vendor's XA driver.public void setNeedTxCtxOnClose(boolean b) throws javax.management.InvalidAttributeValueException
true
if the XA driver requires a distributed transaction
context when closing various JDBC objects, e.g. result sets, statements,
connections etc. If it is specified to true, SQL exceptions that
are thrown while closing the JDBC objects in no transaction
context will be swallowed.
This property applies to XA connection pools only, and is ignored for non-XA drivers. Its intention is to workaround specific problems with third party vendor's XA driver.
b
- The new needTxCtxOnClose valuepublic boolean getXAEndOnlyOnce()
true
if XAResource.end() will be called
only once for each pending XAResource.start(). e.g. the XA
driver will not be called XAResource.end(TMSUSPEND),
XAResource.end(TMSUCCESS) successively.
This property applies to XA connection pools only, and is ignored
for non-XA driver. Its intention is to workaround specific
problems with third party vendor's XA driver.public void setXAEndOnlyOnce(boolean b) throws javax.management.InvalidAttributeValueException
b
- The new xAEndOnlyOnce valuepublic boolean getNewXAConnForCommit()
true
if a dedicated XA connection is used
for commit/rollback processing of a particular distributed
transaction.
This property applies to XA connection pools only, and is ignored
for non-XA driver. Its intention is to workaround specific
problems with third party vendor's XA driver.public void setNewXAConnForCommit(boolean b) throws javax.management.InvalidAttributeValueException
This property applies to XA connection pools only, and is ignored for non-XA driver. Its intention is to workaround specific problems with third party vendor's XA driver.
b
- The new newXAConnForCommit valuepublic boolean getKeepLogicalConnOpenOnRelease()
true
if the logical JDBC connection is kept
open when the physical XA connection is returned to the XA
connection pool.
This property applies to XA connection pools only, and is ignored
for non-XA driver. Its intention is to workaround specific
problems with third party vendor's XA driver.public void setKeepLogicalConnOpenOnRelease(boolean b) throws javax.management.InvalidAttributeValueException
This property applies to XA connection pools only, and is ignored for non-XA driver. Its intention is to workaround specific problems with third party vendor's XA driver.
b
- The new keepLogicalConnOpenOnRelease valuepublic void setPreparedStatementCacheSize(int cacheSize)
cacheSize
- The new preparedStatementCacheSize valuegetPreparedStatementCacheSize()
public int getPreparedStatementCacheSize()
setPreparedStatementCacheSize(int)
public void setConnectionReserveTimeoutSeconds(int seconds)
-1
, a call will never timeout.
seconds
- The new connectionReserveTimeoutSeconds valuepublic int getConnectionReserveTimeoutSeconds()
-1
, a call will never timeout.
public void setConnectionCreationRetryFrequencySeconds(int seconds)
seconds
- The new connectionCreationRetryFrequencySeconds valuepublic int getConnectionCreationRetryFrequencySeconds()
public void setInactiveConnectionTimeoutSeconds(int seconds)
seconds
- The new inactiveConnectionTimeoutSeconds valuepublic int getInactiveConnectionTimeoutSeconds()
public void setHighestNumWaiters(int count)
count
- The new highestNumWaiters valuepublic int getHighestNumWaiters()
public void setHighestNumUnavailable(int count)
count
- The new highestNumUnavailable valuepublic int getHighestNumUnavailable()
public void setInitTableName(java.lang.String table) throws javax.management.InvalidAttributeValueException
"select count(*) from InitTableName"
The InitTableName
must exist and be accessible to
the database user for the connection. Most database servers
optimize this SQL to avoid a table scan, but it is still a good
idea to set InitTableName
to the name of a table
that is known to have few rows, or even no rows.
If InitTableName
begins with "SQL "
,
then the rest of the string following that leading token will be
taken as a literal sql statement that will be used to initialize
a connection.
table
- The new initTableName valuepublic java.lang.String getInitTableName()
public void setStatementCacheSize(int cacheSize)
cacheSize
- The new statementCacheSize valuegetStatementCacheSize()
public int getStatementCacheSize()
setStatementCacheSize(int)
public void setStatementCacheType(java.lang.String type)
statementCacheSize
is met,
the Least Recently Used statement is removed when a new statement is used.
statementCacheSize
number of statements
is stored and stay fixed in the cache. No new statements are cached unless the cache
is manually cleared.
type
- The new statementCacheType valuegetStatementCacheType()
public java.lang.String getStatementCacheType()
setStatementCacheType(java.lang.String)
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs81b |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |