Version 2

    Traditionnaly the management interface for standard MBean is discovered by a naming pattern :


    public interface MyService { ... }


    public class MyServiceImpl implements MyServiceImplMBean { ... }


    public interface MyServiceImplMBean extends MyService { ... }



    All the managed operations and attributes of the MyService instance registered in an MbeanServer are those on the MyServiceMBean interface. Since JMX 1.2, it is possible to create the management interface for an MBean using an specified java interface. It is possible to specify that interface in jboss-service.xml.


    Example :


    ... <mbean code="MyServiceImpl" name="jboss:service=Foo" interface="MyService"/> ...


    In that case the management interface is defined by the interface MyService.