Title: Re: JMX MBean Interface generation

Thanks for the response.  Perhaps I am a bit under-informed.  This is what I am trying:

Superclass ClassOne -

no @jmx:mbean tag defined.
public class ServiceMBean extends IfaceMBean

  /**
   * @jmx:managed-attribute
   */
  public String getName() {
    return name;
  }
}

Subclass ClassTwo -
/**
 * @jmx:mbean name=":=MyOtherMBeanService"
 *      extends="IfaceMBean"<p>
  */
public class ClassTwo
  extends ServiceMBean
  implements ClassTwoMBean {

  /**
   * @jmx:managed-attribute
   */
  public String getState() {
    return state;
  }
}


Ant task -
<!-- Generate the MBean interfaces and descriptions -->
<jmxdoclet destdir="${src.dir}" force="yes">
     
  <fileset dir="${src.dir}">
  </fileset>
     
  <!-- Create the MBean interface for the MBean -->
  <mbeaninterface />

</jmxdoclet>



Once Ant build script is executed, only the getState() method is included in the resulting ClassTwoMBean interface.  Any ideas what I may be missing?

Thanks again.

Bill


 
From: "Eric Jain" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Date: Sat, 20 Sep 2003 13:46:47 +0200
Organization: Swiss Institute of Bioinformatics
Subject: [Xdoclet-user] Re: JMX MBean Interface generation
Reply-To: [EMAIL PROTECTED]

> Is it possible for XDoclet to include methods inherited from the
> superclass in a generated MBean interface?

That's the way it works (at least for me).

--
Eric Jain

Reply via email to