[jboss-dev-forums] [Design of JCA on JBoss] - Re: JBAS-1808 - MCF MBeans
vickyk
do-not-reply at jboss.com
Thu Jan 31 05:53:52 EST 2008
"adrian at jboss.org" wrote :
| * making the ManagedConnection an MBean, which is possible since ManagedConnections
| are relatively long lived.
| * forcing the MCF MBean to consolidate connection stats
|
I have started looking at JBAS-1808 and would like to get some pointers regarding the implementation details
* making the ManagedConnection an MBean
1) When ManagedConnection is created it should be registered as MBean.
2) The ManagedConnection MBean will have to expose the management/statistics data.
3) Finally we need management/statistics related operations defined in MCF MBean which will look/consolidate the data. The MCF MBean being referred here is org.jboss.resource.connectionmanager.RARDeployment .
The other option
* forcing the MCF MBean to consolidate connection stats
The org.jboss.resource.connectionmanager.RARDeployment can be updated to pull all the PreparedStatementCache data from the associated MCF instance which is available through getMcfInstance() method .
The connection creation/destruction in MCF should update the PreparedStatementCache related data in the MCF implementation(LocalManagedConnectionFactory Or XAManagedConnectionFactory) , this needs to be implemented .
This option looks complex .
Looking at the original requirement I could think of pulling the PreparedStatementCache from the JbossManagedConnectionPool MBean per DataSource.
As per the original requirement we need to
1) Get all the ManagedConnection from the Pool.
2) Find out the PreparedStatementCache associated with these ManagedConneciton in the pool.
Here I see the related data being pulled from the JbossManagedConnectionPool/InternalManagedConnectionPool .
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125078#4125078
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125078
More information about the jboss-dev-forums
mailing list