This may be somewhat of a cross-cut question, but I'm using xdoclet (via Maven) trying 
to generate the interfaces and the deployment descriptor for some mbeans that I'm 
hoping to package into a SAR. This is my first foray into MBeans, so I'm taking it 
very slowly. I've defined a class and used the @jmx.mbean tag, providing no other 
parameters. I added the @jboss.xmbean tag when I noticed that I was not getting a 
descriptor. I've defined a single getter method in the class and used the 
@jmx.managed-attribute tag on that method.
I'm getting an Interface being generated, but it doesn't include the attribute, it 
only defines the empty Interface, and I'm getting a deployment descriptor, but it's 
being put into a file named after the class with an xml extension, in a path that 
mimics the package path for the class and here's its content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mbean PUBLIC "-//JBoss//DTD JBOSS XMBEAN 1.0//EN" 
"http://www.jboss.org/j2ee/dtd/jboss_xmbean_1_0.dtd";>


  
    
  
  com.foo.bar.minibatch.BatchJobManager

  <!--attributes-->

<!--artificial attributes-->

<!--operations -->

<!--artificial operations-->

<!--notifications -->


My target is JBoss 3.2.3, so I'm not certain that what I'm trying to do is possible. 
I'm not sure whether or not I have to be targeting JBoss 4. But target aside, what is 
being produced doesn't make a lot of sense to me.

Here's the class source file:
package com.iqfs.liq.minibatch;

/**
 * @author rad
 *
 * @jboss.xmbean
 * @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 the Interface that gets generated:

/*
 * Generated file - Do not edit!
 */
package com.foo.bar.minibatch;

/**
 * MBean interface.
 * @author rad
 */
public interface BatchJobManagerMBean {

}

If anyone could direct me to where I should look to find out what I need to do, I'd be 
appreciative. I've tried expanding the xdoclet-jboss-module and the xdoclet-jmx-module 
jar files and looking at what I find inside, but I don't find much help there. There's 
very little that I've been able to find on the web about this. Is xdoclet development 
for JBoss still ongoing?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822217#3822217

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822217


-------------------------------------------------------
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
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to