Hi, have a look here:
JSR-000003 JavaTM Management http://jcp.org/aboutJava/communityprocess/final/jsr003/index3.html download jmx_1.2_spec.pdf page 122 "Registration of MBeans" or here: http://java.sun.com/j2se/1.5.0/docs/api/javax/management/MBeanServer.html ObjectInstance registerMBean(Object object, ObjectName name) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException; sample code to get mbean server inside jboss (e.g. inside a stateless session bean, jboss has one and only one jmx server): List servers = MBeanServerFactory.findMBeanServer(null); if (servers.size() != 1) throw new EJBException("Not exactly one server found"); MBeanServer mbeanServer = (MBeanServer) servers.get(0); hth, Marcel View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930740#3930740 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930740 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
