What is the meaning of the “xmbean-dd” attribute in an mbean in jboss-service.xml?

StackOverflow https://stackoverflow.com/questions/420819

  •  05-07-2019
  •  | 
  •  

Question

For example,

   <mbean code="org.jnp.server.NamingBeanImpl" 
          name="jboss:service=NamingBeanImpl" 
          xmbean-dd="resource:xmdesc/NamingBean-xmbean.xml">
   </mbean>
Was it helpful?

Solution

The optional xmbean-dd attribute specifies the path to the XMBean resource if this MBean service uses the JBoss XMBean descriptor to define a Model MBean management interface

according to section 3.4.2.1 The SARDeployer MBean in the documentation.

Basically this means that for StandardMBeans that usually have no description of arguments or operations, you can supply those in an XML file. The resource: prefix points to the $SERVER/conf directory. Have a look at resource:xmdesc/ for examples of descriptors for MBeans in resource:jboss-service.xml.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top