|
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 |
DEFAULT_ORDER,
MAX_ORDER,
MIN_ORDER |
Method Summary | |
java.lang.String |
getACLName()
Returns the ACL used to control access to this Connection Pool. |
int |
getCapacityIncrement()
Returns the increment by which the pool capacity is expanded. |
java.lang.String |
getDriverName()
Returns the full package name of the JDBC 2-tier driver class used to create the physical connections between the WebLogic Server and the DBMS for this Connection Pool. |
int |
getInitialCapacity()
Returns number of physical database connections to create when creating the pool. |
int |
getLoginDelaySeconds()
Return 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. |
java.lang.String |
getPassword()
Password attribute If set, this value overrides any password defined in the Properties passed to the tier-2 JDBC Driver when
creating physical database connections. |
int |
getPreparedStatementCacheSize()
Returns size of the prepared statement cache. |
java.util.Properties |
getProperties()
Returns the list of properties passed to the the 2-tier JDBC Driver to use when creating physical database connections. |
int |
getRefreshMinutes()
Get the connection refresh interval |
int |
getShrinkPeriodMinutes()
Get the number of minutes to wait before shrinking a connection pool that has incrementally increased to meet demand. |
boolean |
getSupportsLocalTransaction()
|
boolean |
getTestConnectionsOnRelease()
When set to true, the WebLogic Server tests a connection before returning it to the connection pool. |
boolean |
getTestConnectionsOnReserve()
When set to true, the WebLogic Server tests a connection before giving it to the client. |
java.lang.String |
getTestTableName()
Gets the name of the table that will be used when testing a physical database connection. |
java.lang.String |
getURL()
Returns the database URL used to create the connections in this Connection Pool. |
java.lang.String |
getXAPassword()
Returns the Open String password as set with setXAPassword() |
boolean |
isConnLeakProfilingEnabled()
This property enables JDBC Connection leak profiling. |
boolean |
isShrinkingEnabled()
|
boolean |
isSqlStmtProfilingEnabled()
SQL roundtrip profiling stores SQL statement text, execution time and other metrics. |
void |
setACLName(java.lang.String name)
Sets the ACL used to control access to this Connection Pool. |
void |
setCapacityIncrement(int capacity)
Sets the increment by which the pool capacity is expanded. |
void |
setConnLeakProfilingEnabled(boolean enable)
|
void |
setDriverName(java.lang.String driverClassName)
Sets the full package name of the JDBC 2-tier driver class used to create the physical connections between the WebLogic Server and the DBMS for this Connection Pool. |
void |
setInitialCapacity(int capacity)
Sets number of physical database connections to create when creating the pool. |
void |
setLoginDelaySeconds(int secs)
Set number of seconds to delay before creating each physical database connection. |
void |
setMaxCapacity(int capacity)
Sets maximum number of physical database connections that this Connection Pool can contain. |
void |
setPassword(java.lang.String password)
|
void |
setPreparedStatementCacheSize(int cacheSize)
Sets size of the prepared statement cache. |
void |
setProperties(java.util.Properties props)
Sets the list of properties passed to the the 2-tier JDBC Driver to use when creating physical database connections. |
void |
setRefreshMinutes(int minutes)
Set the connection refresh interval. |
void |
setShrinkingEnabled(boolean enable)
Indicates whether or not the pool can shrink back to its InitialCapacity when connections are detected to not
be in use. |
void |
setShrinkPeriodMinutes(int minutes)
Set the number of minutes to wait before shrinking a connection pool that has incrementally increased to meet demand. |
void |
setSqlStmtProfilingEnabled(boolean enable)
This property enables running of JDBC SQL roundtrip profiling. |
void |
setSupportsLocalTransaction(boolean support)
This property applies to XA connection pools only, and is ignored for non-XA driver. |
void |
setTestConnectionsOnRelease(boolean enable)
|
void |
setTestConnectionsOnReserve(boolean enable)
|
void |
setTestTableName(java.lang.String table)
Sets the name of the table that will be used when testing a physical database connection. |
void |
setURL(java.lang.String url)
Sets the database URL used to create the connections in this Connection Pool. |
void |
setXAPassword(java.lang.String password)
XAPassword attribute 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 |
getNotes,
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,
preDeregister,
preRegister |
Methods inherited from interface javax.management.NotificationBroadcaster |
addNotificationListener,
getNotificationInfo,
removeNotificationListener |
Method Detail |
public boolean isConnLeakProfilingEnabled()
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.
public void setConnLeakProfilingEnabled(boolean enable) throws javax.management.InvalidAttributeValueException
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.
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
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 user
passes other WLS security controls).
public java.lang.String getURL()
public void setURL(java.lang.String url) throws javax.management.InvalidAttributeValueException
public java.lang.String getDriverName()
public void setDriverName(java.lang.String driverClassName) throws javax.management.InvalidAttributeValueException
java.sql.Driver
interface.
Check the documentation for the JDBC driver to find the full
pathname.
public java.util.Properties getProperties()
public void setProperties(java.util.Properties props) throws javax.management.InvalidAttributeValueException
user=scott;server=myDB
.
public int getLoginDelaySeconds()
public void setLoginDelaySeconds(int secs) throws javax.management.InvalidAttributeValueException
public int getInitialCapacity()
public void setInitialCapacity(int capacity) throws javax.management.InvalidAttributeValueException
public int getMaxCapacity()
public void setMaxCapacity(int capacity) throws javax.management.InvalidAttributeValueException
public int getCapacityIncrement()
public void setCapacityIncrement(int capacity) throws javax.management.InvalidAttributeValueException
MaxCapacity
.
public boolean isShrinkingEnabled()
true
to enable pool shrinking.public void setShrinkingEnabled(boolean enable) throws javax.management.InvalidAttributeValueException
InitialCapacity
when connections are detected to not
be in use.
public int getShrinkPeriodMinutes()
public void setShrinkPeriodMinutes(int minutes) throws javax.management.InvalidAttributeValueException
ShrinkingEnabled
must be true for shrinking
to take place.
public int getRefreshMinutes()
public void setRefreshMinutes(int minutes) throws javax.management.InvalidAttributeValueException
RefreshMinutes
unused connections will be tested
using TestTableName
. Connections that do not pass
the test will be closed and reopened in an attempt to reestablish
a valid physical database connection. If
TestTableName
is not set then the test will not be
performed.
public java.lang.String getTestTableName()
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, after that leading token, will be
taken as a literal sql statement that will be used to test a
connection.
public boolean getTestConnectionsOnReserve()
public void setTestConnectionsOnReserve(boolean enable) throws javax.management.InvalidAttributeValueException
public boolean getTestConnectionsOnRelease()
public void setTestConnectionsOnRelease(boolean enable) throws javax.management.InvalidAttributeValueException
public java.lang.String getPassword()
Properties
passed to the tier-2 JDBC Driver when
creating physical database connections. The value is stored in
an encrypted form in the config.xml and can be used to avoid
storing cleartext passwords in that file.
public void setPassword(java.lang.String password) throws javax.management.InvalidAttributeValueException
public java.lang.String getXAPassword()
setXAPassword()
public void setXAPassword(java.lang.String password) throws javax.management.InvalidAttributeValueException
public boolean getSupportsLocalTransaction()
true
if XA driver supports SQL with no
global transaction. This property applies to XA connection pools
only, and is ignored for non-XA driver.public void setSupportsLocalTransaction(boolean support) throws javax.management.InvalidAttributeValueException
public void setPreparedStatementCacheSize(int cacheSize)
getPreparedStatementCacheSize()
public int getPreparedStatementCacheSize()
setPreparedStatementCacheSize(int)
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |