|
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,
DEFAULT_EMPTY_BYTE_ARRAY |
Method Summary | |
java.lang.String |
getACLName()
Deprecated. |
int |
getCapacityIncrement()
Returns the increment by which the connection pool capacity is expanded. |
int |
getConnectionCreationRetryFrequencySeconds()
Gets the connectionCreationRetryFrequencySeconds attribute of the JDBCConnectionPoolMBean object, which is the number of seconds between attempts to establish connections to the database. |
int |
getConnectionReserveTimeoutSeconds()
The number of seconds after which a call to reserve a connection from the connection pool will timeout. |
int |
getCountOfRefreshFailuresTillDisable()
Set the number of consecutive failures to replace dead pool connections before we disable the pool. |
int |
getCountOfTestFailuresTillFlush()
Get the number of consecutive failed pool connection tests before we close all the connections the pool. |
java.lang.String |
getDriverName()
Returns 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. |
boolean |
getEnableResourceHealthMonitoring()
Returns whether JTA resource health monitoring is enabled for this XA connection pool. |
int |
getHighestNumUnavailable()
Gets the highestNumUnavailable attribute of the JDBCConnectionPoolMBean object, which is the maximum number of connections in the connection pool that can be made unavailable (to an application) for purposes like refreshing the connection, etc. |
int |
getHighestNumWaiters()
Gets the highestNumWaiters attribute of the JDBCConnectionPoolMBean object, which is the maximum number of connection requests that can concurrently block waiting to reserve a connection from the pool. |
int |
getInactiveConnectionTimeoutSeconds()
Gets the inactiveConnectionTimeoutSeconds attribute of the JDBCConnectionPoolMBean object, which is the number of seconds of inactivity after which reserved connections will be forcibly returned to the connection pool. |
int |
getInitialCapacity()
Returns the number of physical database connections to create when creating the connection pool. |
java.lang.String |
getInitSQL()
Gets the initSQL attribute of the JDBCConnectionPoolMBean object, which is a SQL statement to execute to initialize (or "prime") a physical database connection. |
boolean |
getKeepLogicalConnOpenOnRelease()
Returns true if the logical JDBC connection is kept
open when the physical XA connection is returned to the XA
connection pool. |
boolean |
getKeepXAConnTillTxComplete()
Returns true if the XA connection pool associates
the same XA connection with the distributed transaction until the
transaction completes. |
int |
getLoginDelaySeconds()
Returns the number of seconds to delay before creating each physical database connection. |
int |
getMaxCapacity()
Returns the maximum number of physical database connections that this connection pool can contain. |
boolean |
getNeedTxCtxOnClose()
Returns true if the XA driver requires a distributed
transaction context when closing various JDBC objects,
e.g. |
boolean |
getNewXAConnForCommit()
Returns true if a dedicated XA connection is used
for commit/rollback processing of a particular distributed
transaction. |
java.lang.String |
getPassword()
The database password as set with setPassword() ,
setPasswordEncrypted() ,
or as a key=value pair in setProperties() . |
byte[] |
getPasswordEncrypted()
The encrypted database password as set with setPassword() ,
setPasswordEncrypted(byte[] bytes) , or as a key=value pair in
setProperties() . |
int |
getPreparedStatementCacheSize()
Deprecated. |
java.util.Properties |
getProperties()
Returns the list of properties passed to the the JDBC Driver to use when creating physical database connections. |
int |
getRefreshMinutes()
Deprecated. |
boolean |
getRollbackLocalTxUponConnClose()
Whether WLS connection pool will call rollback() on the connection before putting it back in the pool. |
int |
getSecondsToTrustAnIdlePoolConnection()
The number of seconds within the use of a pooled connection that WebLogic Server trusts that the connection is still viable and will skip connection testing. |
int |
getShrinkFrequencySeconds()
Returns the 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; The size of the cache is the number of Prepared and Callable statements created from a particular connection and stored in the cache for further use. |
java.lang.String |
getStatementCacheType()
Returns the algorithm used to maintain the statement cache. |
int |
getStatementTimeout()
Returns the configured statementTimeout value. |
boolean |
getSupportsLocalTransaction()
Whether the XA driver used to create physical database connections supports SQL without global transactions. |
boolean |
getTestConnectionsOnCreate()
Returns the TestConnectionsOnCreate attribute of the JDBCConnectionPoolMBean object; 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. |
boolean |
getTestConnectionsOnRelease()
Returns the TestConnectionsOnRelease attribute of the JDBCConnectionPoolMBean object; when set to true, WebLogic Server tests a connection before returning it to the connection pool. |
boolean |
getTestConnectionsOnReserve()
Returns the TestConnectionsOnReserve attribute of the JDBCConnectionPoolMBean object; when set to true, WebLogic Server tests a connection before giving it to the client. |
int |
getTestFrequencySeconds()
Returns the number of seconds between database connection tests. |
int |
getTestStatementTimeout()
Returns the configured testStatementTimeout value. |
java.lang.String |
getTestTableName()
Returns 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()
Returns true if XAResource.end() will be called
only once for each pending XAResource.start(). |
java.lang.String |
getXAPassword()
The password that is used to create physical XA database connections. |
byte[] |
getXAPasswordEncrypted()
The encrypted password that is used to create physical XA database connections. |
int |
getXAPreparedStatementCacheSize()
Deprecated. |
int |
getXARetryDurationSeconds()
Determines the duration in seconds during which the transaction manager will retry to perform recover, rollback, and commit operations on the resource. |
int |
getXARetryIntervalSeconds()
Determines the time in seconds between XA retry operations if the XARetryDurationSeconds attribute is set to a positive value. |
boolean |
getXASetTransactionTimeout()
When set to true, the WebLogic Server Transaction Manager calls XAResource.setTransactionTimeout() before calling XAResource.start, and passes either the XATransactionTimeout or the global transaction timeout in seconds. |
int |
getXATransactionTimeout()
Determines the number of seconds to pass as the transaction timeout value in the XAResource.setTransactionTimeout() method. |
boolean |
isConnLeakProfilingEnabled()
Returns if JDBC Connection leak profiling is enabled. |
boolean |
isConnProfilingEnabled()
Returns if JDBC Connection usage profiling is enabled. |
boolean |
isIgnoreInUseConnectionsEnabled()
Returns the configured ignoreInUseConnectionsEnabled value. |
boolean |
isRemoveInfectedConnectionsEnabled()
Whether a connection will be removed from the connection pool when the application asks for the underlying vendor connection object. |
boolean |
isShrinkingEnabled()
Indicates whether or not the pool can shrink to the greater of its InitialCapacity or the current number of connections in use when
it is detected that connections created during increased traffic are not being used. |
boolean |
isSqlStmtProfilingEnabled()
SQL roundtrip profiling stores SQL statement text, execution time and other metrics. |
void |
setACLName(java.lang.String name)
Deprecated. |
void |
setCapacityIncrement(int capacity)
Sets the increment by which the connection pool capacity is expanded. |
void |
setConnectionCreationRetryFrequencySeconds(int seconds)
The number of seconds between attempts to establish connections to the database. |
void |
setConnectionReserveTimeoutSeconds(int seconds)
The number of seconds after which a call to reserve a connection from the connection pool will timeout. |
void |
setConnLeakProfilingEnabled(boolean enable)
This property enables JDBC Connection leak profiling. |
void |
setConnProfilingEnabled(boolean enable)
This property enables JDBC Connection usage profiling. |
void |
setCountOfRefreshFailuresTillDisable(int newVal)
Set the number of consecutive failures to replace dead pool connections before we disable the pool. |
void |
setCountOfTestFailuresTillFlush(int newVal)
Set the number of consecutive failed pool connection tests before we close all the connections the pool. |
void |
setDriverName(java.lang.String driverClassName)
Sets 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 |
setEnableResourceHealthMonitoring(boolean enable)
Determines whether JTA resource health monitoring is enabled for this XA connection pool. |
void |
setHighestNumUnavailable(int count)
The maximum number of connections in the connection pool that can be made unavailable (to an application) for purposes like refreshing the connection, etc. |
void |
setHighestNumWaiters(int count)
The maximum number of connection requests that can concurrently block waiting to reserve a connection from the pool. |
void |
setIgnoreInUseConnectionsEnabled(boolean enable)
Enables pool to be shutdown even if connections are still in use. |
void |
setInactiveConnectionTimeoutSeconds(int seconds)
The number of seconds of inactivity after which reserved connections will be forcibly returned to the connection pool. |
void |
setInitialCapacity(int capacity)
Sets the number of physical database connections to create when creating the connection pool. |
void |
setInitSQL(java.lang.String table)
The SQL statement to execute to initialize (or "prime") a physical database connection. |
void |
setKeepLogicalConnOpenOnRelease(boolean b)
Determines 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)
Sets the number of seconds to delay before creating each physical database connection. |
void |
setMaxCapacity(int capacity)
Sets the 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)
Determines whether a dedicated XA connection is used for commit/rollback processing of a particular distributed transaction. |
void |
setPassword(java.lang.String password)
As of 8.1 sp4, this method does the following: |
void |
setPasswordEncrypted(byte[] bytes)
Encrypts the password and sets the value of the PasswordEncrypted attribute. |
void |
setPreparedStatementCacheSize(int cacheSize)
Deprecated. |
void |
setProperties(java.util.Properties props)
Sets the list of properties passed to the the JDBC Driver to use when creating physical database connections. |
void |
setRefreshMinutes(int minutes)
Deprecated. |
void |
setRemoveInfectedConnectionsEnabled(boolean enable)
Controls whether a connection will be removed from the connection pool when the application asks for the underlying vendor connection object. |
void |
setRollbackLocalTxUponConnClose(boolean enable)
If set to true, WLS connection pool will call rollback() on the connection before putting it back in the pool. |
void |
setSecondsToTrustAnIdlePoolConnection(int secs)
Sets the SecondsToTrustAnIdlePoolConnection attribute. |
void |
setShrinkFrequencySeconds(int seconds)
Sets the 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 |
setSqlStmtProfilingEnabled(boolean enable)
This property enables running of JDBC SQL roundtrip profiling. |
void |
setStatementCacheSize(int cacheSize)
The number of Prepared and Callable Statements stored in the cache for reuse. |
void |
setStatementCacheType(java.lang.String type)
Sets the algorithm used to maintain the statement cache: LRU or Fixed. |
void |
setStatementTimeout(int timeout)
The time after which a statement currently being executed will be timed-out. |
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)
Returns the number of seconds between database connection tests. |
void |
setTestStatementTimeout(int timeout)
The time after which the test statement (configured by applications using the pool attribute Test Table Name) or initialization statement (configured by applications using the pool attribute InitSQL) currently being executed will be timed out. |
void |
setTestTableName(java.lang.String table)
Sets 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)
Determines whether XAResource.end() will be called only once for each pending XAResource.start(). |
void |
setXAPassword(java.lang.String password)
As of 8.1 sp4, this method does the following: |
void |
setXAPasswordEncrypted(byte[] bytes)
Encrypts the password and sets the value of the XAPasswordEncrypted attribute. |
void |
setXAPreparedStatementCacheSize(int size)
Deprecated. |
void |
setXARetryDurationSeconds(int duration)
Determines the duration in seconds during which the transaction manager will retry to perform recover, rollback, and commit operations on the resource. |
void |
setXARetryIntervalSeconds(int interval)
Determines the time in seconds between XA retry operations if the XARetryDurationSeconds attribute is set to a positive value. |
void |
setXASetTransactionTimeout(boolean b)
When set to true, the WebLogic Server Transaction Manager calls XAResource.setTransactionTimeout() before calling XAResource.start, and passes either the XATransactionTimeout or the global transaction timeout in seconds. |
void |
setXATransactionTimeout(int timeout)
Determines the number of seconds to pass as the transaction timeout value in the XAResource.setTransactionTimeout() method. |
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 void setConnProfilingEnabled(boolean enable) throws javax.management.InvalidAttributeValueException
When connection usage profiling is active, the pool will store the stack trace at the time the connection object is released back into the pool by the client. If an expection is thrown during a subsequent operation related to global (XA) transactions, this stack trace is reported.
Thise feature is used to detect local transaction work left incomplete by application code, which can interfere with subsequent operations related to global (XA) transactions performed using this JDBC Connection.
This feature uses extra resources and will likely slowdown Connection Pool operations, so it is not recommended for production use.
enable
- The new connProfilingEnabled valuepublic boolean isConnProfilingEnabled()
public boolean isSqlStmtProfilingEnabled()
true
if JDBC SQL roundtrip
profiling enabledpublic void setSqlStmtProfilingEnabled(boolean enable) throws javax.management.InvalidAttributeValueException
This is a resource-consuming feature, so it's recommended that it's turned off on a production server.
enable
- The new sqlStmtProfilingEnabled valuepublic 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
setEncryptedPassword()
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 valuesetPasswordEncrypted(byte[] bytes)
public int getLoginDelaySeconds()
public void setLoginDelaySeconds(int secs) throws javax.management.InvalidAttributeValueException
secs
- The new loginDelaySeconds valuepublic int getSecondsToTrustAnIdlePoolConnection()
The number of seconds within the use of a pooled connection that WebLogic Server trusts that the connection is still viable and will skip connection testing.
If an application requests a connection within the time specified since the connection was tested or successfully used and returned to the connection pool, WebLogic Server skips the connection test before delivering it to an application (if TestConnectionsOnReserve is enabled).
WebLogic Server also skips the automatic refresh connection test if the connection was successfully used and returned to the connection pool within the time specified (if TestFrequencySeconds is specified).
SecondsToTrustAnIdlePoolConnection is a tuning feature that can improve application performance by minimizing the delay caused by database connection testing, especially during heavy traffic. However, it can reduce the effectiveness of connection testing, especially if the value is set too high. The appropriate value depends on your environment and the likelihood that a connection will become defunct.
public void setSecondsToTrustAnIdlePoolConnection(int secs) throws javax.management.InvalidAttributeValueException
secs
- The new secondsToTrustAnIdlePoolConnection 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
or the current number of connections in use when
it is detected that connections created during increased traffic are not being used.
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.
When set to 0
(the default),
periodic testing is disabled.
setHighestNumUnavailable(int)
,
setTestTableName(java.lang.String)
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 valuesetHighestNumUnavailable(int)
,
setTestTableName(java.lang.String)
public 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()
The database password as set with setPassword()
,
setPasswordEncrypted()
,
or as a key=value pair in setProperties()
.
As of 8.1 sp4, the getPassword()
method does the following:
PasswordEncrypted
attribute.
Using getPassword()
is a potential security risk because
the String object (which contains the unencrypted password) remains in
the JVM's memory until garbage collection removes it. Depending on how
memory is allocated in the JVM, a significant amount of time could pass
before this unencrypted data is removed from memory.
Instead of using this method, use getPasswordEncrypted()
to retrieve the encrypted password. On the same WebLogic Server that
encrypted the value of the PasswordEncrypted attribute, use
weblogic.management.EncryptionHelper.encrypt()
to encrypt the user-supplied password. Then compare the encrypted values.
getPasswordEncrypted()
public void setPassword(java.lang.String password) throws javax.management.InvalidAttributeValueException
As of 8.1 sp4, this method does the following:
PasswordEncrypted
attribute to the
encrypted parameter value.
password
- The new password valuesetPasswordEncrypted(byte[] bytes)
public byte[] getPasswordEncrypted()
The encrypted database password as set with setPassword()
,
setPasswordEncrypted(byte[] bytes)
, or as a key=value pair in
setProperties()
.
EncryptionHelper
public void setPasswordEncrypted(byte[] bytes) throws javax.management.InvalidAttributeValueException
Encrypts the password and sets the value of the PasswordEncrypted attribute.
bytes
- The new password value as a byte array.getPasswordEncrypted()
public java.lang.String getXAPassword()
The password that is used to create physical XA database connections.
As of 8.1 sp4, the getXAPassword()
method does the following:
XAPasswordEncrypted
attribute.
Using getXAPassword()
is a potential security risk because
the String object (which contains the unencrypted password) remains in
the JVM's memory until garbage collection removes it. Depending on how
memory is allocated in the JVM, a significant amount of time could pass
before this unencrypted data is removed from memory.
Instead of using this method, use getXAPasswordEncrypted()
to retrieve the encrypted password. On the same WebLogic Server that
encrypted the value of the XAPasswordEncrypted attribute, use
weblogic.management.EncryptionHelper.encrypt()
to encrypt the user-supplied password. Then compare the encrypted values.
getXAPasswordEncrypted()
public void setXAPassword(java.lang.String password) throws javax.management.InvalidAttributeValueException
As of 8.1 sp4, this method does the following:
XAPasswordEncrypted
attribute to the
encrypted parameter value.
password
- The new xAPassword valuesetXAPasswordEncrypted(byte[] bytes)
public byte[] getXAPasswordEncrypted()
The encrypted password that is used to create physical XA database connections.
EncryptionHelper
public void setXAPasswordEncrypted(byte[] bytes) throws javax.management.InvalidAttributeValueException
bytes
- The new xAPassword value as a byte array.getXAPasswordEncrypted()
public 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(). That is, the XA
driver will not be called with XAResource.end(TMSUSPEND),
XAResource.end(TMSUCCESS) successively.
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.
public void setXAEndOnlyOnce(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 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 drivers. 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 int getXAPreparedStatementCacheSize()
setXAPreparedStatementCacheSize(int)
public void setXAPreparedStatementCacheSize(int size) throws javax.management.InvalidAttributeValueException
size
- The new xAPreparedStatementCacheSize valuegetXAPreparedStatementCacheSize()
public boolean getEnableResourceHealthMonitoring()
This property applies to XA connection pools only, and is ignored for connection pools that use a non-XA driver.
public void setEnableResourceHealthMonitoring(boolean enable) throws javax.management.InvalidAttributeValueException
This property applies to XA connection pools only, and is ignored for connection pools that use a non-XA driver.
enable
- The new enableResourceHealthMonitoring valuepublic boolean getXASetTransactionTimeout()
When set to false, the Transaction Manager does not call setTransactionTimeout().
This property applies to XA connection pools only, and is ignored for connection pools that use a non-XA driver.
public void setXASetTransactionTimeout(boolean b) throws javax.management.InvalidAttributeValueException
When set to false, the Transaction Manager does not call setTransactionTimeout().
This property applies to XA connection pools only, and is ignored for connection pools that use a non-XA driver.
public int getXATransactionTimeout()
If set, this value should be greater than or equal to the global WebLogic Server transaction timeout.
XASetTransactionTimeout must be set to "true" or this property is ignored.
This property applies to XA connection pools only, and is ignored for connection pools that use a non-XA driver.
public void setXATransactionTimeout(int timeout) throws javax.management.InvalidAttributeValueException
If set, this value should be greater than or equal to the global WebLogic Server transaction timeout.
XASetTransactionTimeout must be set to "true" or this property is ignored.
This property applies to XA connection pools only, and is ignored for connection pools that use a non-XA driver.
public int getXARetryDurationSeconds()
public void setXARetryDurationSeconds(int duration) throws javax.management.InvalidAttributeValueException
public int getXARetryIntervalSeconds()
public void setXARetryIntervalSeconds(int interval) throws javax.management.InvalidAttributeValueException
public void setPreparedStatementCacheSize(int cacheSize)
cacheSize
- The new preparedStatementCacheSize valuegetPreparedStatementCacheSize()
public int getPreparedStatementCacheSize()
setPreparedStatementCacheSize(int)
public void setConnectionReserveTimeoutSeconds(int seconds)
When set to 0
, a call will never timeout.
When set to -1
, a call will timeout immediately.
seconds
- The new connectionReserveTimeoutSeconds valuesetHighestNumWaiters(int)
public int getConnectionReserveTimeoutSeconds()
When set to 0
, a call will never timeout.
When set to -1
, a call will timeout immediately.
public void setConnectionCreationRetryFrequencySeconds(int seconds)
0
(the default), connection retry is disabled.
seconds
- The new connectionCreationRetryFrequencySeconds valuepublic int getConnectionCreationRetryFrequencySeconds()
0
(the default), connection retry is disabled.
public void setInactiveConnectionTimeoutSeconds(int seconds)
0
(the default), the feature is disabled.
seconds
- The new inactiveConnectionTimeoutSeconds valuepublic int getInactiveConnectionTimeoutSeconds()
0
(the default), the feature is disabled.
public void setHighestNumWaiters(int count)
count
- The new highestNumWaiters valuesetConnectionReserveTimeoutSeconds(int)
public int getHighestNumWaiters()
public void setHighestNumUnavailable(int count)
When set to 0
(the default), waiting for a connection is disabled.
count
- The new highestNumUnavailable valuepublic int getHighestNumUnavailable()
public void setInitSQL(java.lang.String table) throws javax.management.InvalidAttributeValueException
InitSQL
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.
Else, InitSQL
will be treated as the name of
a table and the following SQL statement will be used to initialize a
connection:
"select count(*) from InitSQL"
The table InitSQL
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 InitSQL
to the name of a table
that is known to have few rows, or even no rows.
table
- The new initSQL valuepublic java.lang.String getInitSQL()
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 from the cache.
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)
public void setRemoveInfectedConnectionsEnabled(boolean enable)
enable
- The new removeInfectedConnectionsEnabled valueWLConnection.getVendorConnection()
public boolean isRemoveInfectedConnectionsEnabled()
public void setRollbackLocalTxUponConnClose(boolean enable)
enable
- The new rollbackLocalTxUponConnClose valuepublic boolean getRollbackLocalTxUponConnClose()
public void setTestStatementTimeout(int timeout)
The time after which the test statement (configured by applications using the pool attribute Test Table Name) or initialization statement (configured by applications using the pool attribute InitSQL) currently being executed will be timed out.
Efficacy of this feature relies on underlying JDBC driver
support. WebLogic Server passes the time specified to the JDBC driver
using the java.sql.Statement.setQueryTimeout()
method.
If your JDBC driver does not support this method, it may throw an exception
and the timeout value is ignored.
A value of -1
disables this feature.
A value of 0
means that statements will not time out.
timeout
- The new testStatementTimeout valuesetTestTableName(java.lang.String)
,
setInitSQL(java.lang.String)
public int getTestStatementTimeout()
setTestTableName(java.lang.String)
,
setInitSQL(java.lang.String)
public void setStatementTimeout(int timeout)
The time after which a statement currently being executed will be timed-out.
Efficacy of this feature relies on underlying JDBC driver
support. WebLogic Server passes the time specified to the JDBC driver
using the java.sql.Statement.setQueryTimeout()
method.
If your JDBC driver does not support this method, it may throw an exception
and the timeout value is ignored.
A value of -1
disables this feature.
A value of 0
means that statements will not time out.
timeout
- The new statementTimeout valuepublic int getStatementTimeout()
public void setIgnoreInUseConnectionsEnabled(boolean enable)
enable
- The new ignoreInUseConnectionsEnabled valuepublic boolean isIgnoreInUseConnectionsEnabled()
public void setCountOfRefreshFailuresTillDisable(int newVal)
newVal
- The new attribute valuepublic int getCountOfRefreshFailuresTillDisable()
public void setCountOfTestFailuresTillFlush(int newVal)
newVal
- The new attribute valuepublic int getCountOfTestFailuresTillFlush()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs81 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |