[jboss-user] [Beginners Corner] - Re: Access mbeans from web application running on jboss

PeterJ do-not-reply at jboss.com
Thu Sep 27 16:38:42 EDT 2007


You can get JMX information at http://java.sun.com/j2se/1.5.0/docs/guide/jmx/. 

To get you started:

Context ctx = new InitialContext();
  | MBeanServerConnection mconn = (MBeanServerConnection)ctx.lookup("jmx/invoker/RMIAdaptor");
  | ObjectName name = new ObjectName("jboss.system:type=Server");
  | String version = (String)mconn.getAttribute(name, "Version");

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089489#4089489

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089489



More information about the jboss-user mailing list