I've got an MBean for which I want to generate the interface and 
jboss-service.xml. The interface is generated ok and a jboss-service.xml is 
created but it's nearly empty.

Am I missing some tags in the code and/or the ant script?

- jboss-service.xml:

<?xml version="1.0" encoding="UTF-8"?>
<service>
  <!--
  To use non XDoclet mbeans, create a jboss-service.ent file that
  contains the additional mbeans and place it in your
  project's merge dir.
  -->
</service>

- Mbean class:

/** @jmx.mbean
 *  name="fpciv:service=FaultManagedBean"
 *  description="Fault logging framework"
 */
public class FaultManagedBean extends AbstractFault implements 
FaultManagedBeanMBean {

    public FaultManagedBean() {...}
    /** @jmx.managed-operation
     *  description="Looks up all the data associated with parameter 
faultNumber provided"
     * @jmx.managed-parameter
     *  name="faultNumber'
     *  type="Ãnt"
     */
    public String lookupFaultNumber(int faultNumber) {...}
}

- build.xml:

...
<path id="jmx.doclet.classpath">
  <fileset dir="${library.release.dir}" includes="*.jar"/>
</path>
<taskdef name="jmxdoclet"     
         classname="xdoclet.modules.jmx.JMXDocletTask">
  <classpath>
    <path refid="xdoclet.class.path"/>
    <path refid="jmx.doclet.classpath"/>
  </classpath>
</taskdef>
<jmxdoclet destDir="${target.dir}" 
           excludedTags="@version,@author"     
           addedTags="@xdoclet-generated at ${TODAY}"
           verbose="false">
  <fileset dir="${src.dir}">
    <include name="**/*ManagedBean.java" />
  </fileset>
  <jbossxmlservicetemplate servicefile="jboss" 
                           destDir="${bld.dir}/jmx/META-INF"/>
  <mbeaninterface/>
</jmxdoclet>
...




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to