For my second question I mean:
How can you find the XML file from the MBean description? (Because I know the XML file has the MBean name)
Look at mbean jboss.system:service=MainDeployer. It has a listDeployed method. In jmx-console, if you click Invoke on that method you get back a lot of information. Of each comma-separated entry, the 'watch' attribute indentifies the file, and the 'mbeans' attribute lists the mbeans (if any).
Thanks for pointing me to that MBean.
I have a general question about the MBeans that come standard with JBoss: How is one to know which MBean does what? Is there some kind of documentation that says what the important MBeans are and what their operations do (such as MainDeployer that you pointed me to)?
Or are we just supposed to figure them out one by one as the need arises?
I would imagine (and hope) that there's documentation around this somewhere...am I right or wrong on this?
Deployers are there to deploy specific kinds of services, not necessarily related to MBeans.
Most of them are surely documented at the JBoss documentation page at http://labs.jboss.com/portal/jbossas/docs.
XMBeans are a special JBossian implementation of Dynamic MBeans.
XMBeans always have a special XMBean-Descriptor, which can be inline in the MBean desciptor or in a separate file.
<mbean code="org.jboss.logging.Log4jService" name="jboss.system:type=Log4jService,service=Logging" xmbean-dd="resource:xmdesc/Log4jService-xmbean.xml">
With the additional attribute of xmbean-dd being present denominates the MBean as XMBean. As its value is not empty, the Descriptor is in the URL pointed to by the value. If it were empty, the XMBean-DD would be inline.
Heiko W. Rupp <email@example.com>