[jboss-user] [Datasource Configuration] - Re: Get user info from DataSource connection

Steven Bruce do-not-reply at jboss.com
Thu Jun 16 12:41:31 EDT 2011


Steven Bruce [http://community.jboss.org/people/mspbrst2] created the discussion

"Re: Get user info from DataSource connection"

To view the discussion, visit: http://community.jboss.org/message/610642#610642

--------------------------------------------------------------
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
[http://community.jboss.org/message/610642#610642]

Start a new discussion in Datasource Configuration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110616/c2811078/attachment.html 


More information about the jboss-user mailing list