I'm trying to generate the interface for my first Mbean using xdoclet.
Here's my class file:

package com.foo.bar.minibatch;
/**
 * @author rad
 *
 * @jmx.mbean
 */
public class BatchJobManager implements BatchJobManagerMBean {
    /* (non-Javadoc)
     * @see com.foo.bar.minibatch.BatchJobManagerMBean#getActiveJobCount()
     * 
     * @jmx.managed-attribute
     *     description="Get active job count"
     */
    public Integer getActiveJobCount() {
        return new Integer(0);
    }
}

Here's my project.properties:
maven.xdoclet.jmxdoclet.verbose=true
maven.xdoclet.jmxdoclet.destDir=${maven.build.dir}/xdoclet/ejbdoclet
maven.xdoclet.jmxdoclet.fileset.0=true
maven.xdoclet.jmxdoclet.fileset.0.include=**/*java
maven.xdoclet.jmxdoclet.mbeaninterface.0=true

Here's what gets generated:

/*
 * Generated file - Do not edit!
 */
package com.foo.bar.minibatch;
/**
 * MBean interface.
 * @author rad
 */
public interface BatchJobManagerMBean {
}

I have two questions. Where's the definition of the getActiveJobCount method
in the interface, and how can I generate a deployment descriptor for jboss?
I've tried each of the three subproperties that seem to have to do with
jboss, i.e., jbossxmbean, jbossxmldoc, and jbossxmlservicetemplate. The
first one doesn't do anything unless I use the @jboss.xmbean tag in the
source, but I don't want to create an XMBean. The second one produces some
kind of DocBook document, and the third creates an empty service.xml file
with only a <service> tag and a comment as its content.

-- 
Rich
>From his PowerBook G4
An awesome piece of engineering



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to