2 Replies Latest reply on Jun 29, 2006 7:05 PM by starksm64

    XMBean -- extending an existing xmbean.xml file

    genman


      I think it would be a useful feature to be able to specify in an xmbean.xml file that this file "extends" the attributes and operations in an other file.

       <!DOCTYPE mbean PUBLIC
       "-//JBoss//DTD JBOSS XMBEAN 1.2//EN"
       "http://www.jboss.org/j2ee/dtd/jboss_xmbean_1_2.dtd">
      
      <mbean>
       <class>org.jboss.jms.server.plugin.JDBCChannelMapper</class>
       <extends>JBossService-xmbean.xml</extends>
      


      Maybe "extends" isn't the correct word, perhaps "include" or something like that. And you'd be able to include more than one file, so it wouldn't work as an attribute.


        • 1. Re: XMBean -- extending an existing xmbean.xml file
          genman

          To explain the need: The obvious use case is of course the JBoss service one, where the lifecycle methods are used for pretty much every MBean.

          Addtionally, users may want to enhance existing services. Whereas with standard MBeans you simply extend the MBean interface, there's no equivalent for XMBeans.

          • 2. Re: XMBean -- extending an existing xmbean.xml file
            starksm64

            There should be a schema based version that allows for inheritance of attribute groups and the like to allow for this. Having to step outside of the xml features for this just does not seem worth it. We do have entities in the dtd for resuing commons ops/attributes. This is what would have to be used for the existing xml/dtd based version.