[jboss-user] [Management, JMX/JBoss] - Re: Listing all datasources available
PeterJ
do-not-reply at jboss.com
Thu Dec 21 12:39:49 EST 2006
Use the JMX api. Here is an example that would work in a servlet:
Context ctx = new InitialContext();
| MBeanServerConnection mconn = (MBeanServerConnection)ctx.lookup("jmx/invoker/RMIAdaptor");
| ObjectName name = new ObjectName("jboss.jca:service=DataSourceBinding,*");
| Set s = mconn.queryMBeans(name, null);
Variable s contains a collection of the desired mbeans.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995680#3995680
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995680
More information about the jboss-user
mailing list