I have a MBean which inherits from ServiceMBeanSupport and would like to
persist some of the attributes of this class while still exposing the
start/stop/destroy/create methods.

It works fine, but it was wondering if there was a clean way to have
XDoclet generate an XMBean descriptor which included the attributes and
operations of the ServiceMBean class.  One workaround to expose the
start/stop methods is to write constructs such as:

  /**
   * Starts the service.
   * @jmx.managed-operation
   */
  public void start() {
    super.start();
  }

Is there a way I can auto-generate an XMBean descriptor file from an
MBean interface?   If not, can I "inherit" a descriptor from another XML
descriptor?  For example, can't I add to the mbean element an attribute
"parent" or something of the sort, like below?

<mbean parent="org/jboss/jmx/ServiceMBeanSupport.xml">






-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to