JBoss Community

Re: Get user info from DataSource connection

created by Steven Bruce in Datasource Configuration - View the full discussion

So I've found that I have access to the following classes:

 

org.jboss.resource.connectionmanager.InternalManagedConnectionPool

 

org.jboss.resource.connectionmanager.JBossManagedConnectionPool

 



 

org.jboss.resource.connectionmanager.JBossManagedConnectionPool.BasePool;

org.jboss.resource.connectionmanager.JBossManagedConnectionPool.SubPoolContext;

 

 

 

 

 

org.jboss.resource.connectionmanager.JBossManagedConnectionPoolMBean;

 

But I'm not really sure how to use them. 

I'm currently using the following loop to look at my ManagedConnectionPools, can I access information about the sub pools from what I'm currently doing?



 

 



ObjectName dbpoolsQryNam =

new ObjectName("jboss.jca:service=ManagedConnectionPool,*");

Object[] dbpools = server.queryNames(dbpoolsQryNam,

null).toArray();

 

for (int i = 0; i < dbpools.length && status; i++) {

     // code

}

 

Thanks,

Steven

 

Reply to this message by going to Community

Start a new discussion in Datasource Configuration at Community