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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to