If you use XDoclet (and if you don't, you should), it's pretty simple to create the 
Model XMBean for JBoss with param annotations.

For example:

/**
* @jmx:mbean name="MyApplication:service=MyJMX"
 * @jboss.service servicefile="jboss"
 * @jboss.xmbean
 */
public class MyJMX implements MyJMXMBean {
        /** @jmx:managed-operation description="Init the MyJMX MBean" */
        public void init() {};
        /** @jmx:managed-operation description="Start the MyJMX MBean" */
        public void start() {};
        /** @jmx:managed-operation description="Stop the MyJMX MBean" */
        public void stop() {};
        /** @jmx:managed-operation description="Destroy the MyJMX MBean" */
        public void destroy() {};
        /**
         * @jmx:managed-operation description="My doSomething method"
         * @jmx.managed-parameter name="key" type="java.lang.String" 
description=“Key of Task”
         */
        public void doSomething(Object key) {
                // Do something useful with key
        }
}


Then add the "jbossxmbean" sub-task tag to your jmxdoclet ant task, and you should be 
good to go.  I'd post the actual Ant task, but this silly JBoss forum tool doesn't 
handle XML in the message at all.  



<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825392#3825392";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3825392>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to