public interface ConnectionManagerMBean
Management interface for connection managers. One MBean instance exists per connection manager,
whether configured explicitly in server configuration or whether it exists implicitly due to
@DataSourceDefinition
or @ConnectionFactoryDefinition
, or due to the
presence of a connection factory or data source in server configuration without an explicitly configured
connection manager.
Important: the mbean instance is not available until the connection factory or data source is first used.
The object name has the form WebSphere:service=com.ibm.ws.jca.cm.mbean.ConnectionManagerMBean,*
where additional attributes can be included to narrow down the connection manager instance.
WebSphere:service=com.ibm.ws.jca.cm.mbean.ConnectionManagerMBean,jndiName=jdbc/db2,*
<dataSource jndiName="jdbc/db2">
<connectionManager maxPoolSize="10"/>
...
</dataSource>
WebSphere:service=com.ibm.ws.jca.cm.mbean.ConnectionManagerMBean,jndiName=eis/cf2,*
<connectionFactory jndiName="eis/cf2">
<connectionManager maxPoolSize="10"/>
...
</connectionFactory>
WebSphere:service=com.ibm.ws.jca.cm.mbean.ConnectionManagerMBean,name=jmsConnectionFactory[cf1]/connectionManager[default-0],*
<jmsConnectionFactory id="cf1">
<connectionManager maxPoolSize="10"/>
...
</jmsConnectionFactory>
WebSphere:service=com.ibm.ws.jca.cm.mbean.ConnectionManagerMBean,name=databaseStore[dbstore1]/dataSource[default-0]/connectionManager[default-0],*
<databaseStore id="dbstore1">
<dataSource>
<connectionManager maxPoolSize="10"/>
...
</dataSource>
</databaseStore>
WebSphere:service=com.ibm.ws.jca.cm.mbean.ConnectionManagerMBean,name=dataSource[ds1]/connectionManager,*
<dataSource id="ds1">
...
</dataSource>
WebSphere:service=com.ibm.ws.jca.cm.mbean.ConnectionManagerMBean,jndiName=java.comp/env/jdbc/ds3,application=MyApp,module=myweb,component=MyTestServlet,*
WebSphere:service=com.ibm.ws.jca.cm.mbean.ConnectionManagerMBean,jndiName=java.app/env/jdbc/ds4,application=MyApp,*
Modifier and Type | Method and Description |
---|---|
void |
purgePoolContents(java.lang.String doImmediately)
Purge the contents of the connection pool associated with
this Connection Manager.
|
java.lang.String |
showPoolContents()
Displays the contents of the connection pool associated with
this Connection Manager as a human readable string.
|
void purgePoolContents(java.lang.String doImmediately) throws javax.management.MBeanException
doImmediately
- The priority to be used to purge the connection pool.
Priority may be "immediate"
, "abort"
or null
.
Immediate sets the total connection count to 0 and purges the pool
as quickly as possible but waits for transactions to complete.
Abort purges the pool by aborting connections without waiting for transactions to complete.
The default behavior if no value is specified is to purge the pool with normal priority.javax.management.MBeanException
java.lang.String showPoolContents()