> Unfortunatly I cannot find an example. Have you searched? :p
>I was hoping somebody has a example >file which I can use to create my own MBean. Something like this: /** * This MBean has a scheduled method that polls incoming(xml) instructions files; * it also can receive a direct instruction from another part of the application. * * * @jmx:mbean name="Connector Service" * description="An MBean that dispatches pending instructions" * extends="org.jboss.system.ServiceMBean" * * @author Stephane Nicoll * @author $Author: pch $ (last edit) * @version $Revision: 1.3 $ */ public class ConnectorService extends ServiceMBeanSupport implements ConnectorServiceMBean, Controller, Serializable { .... /** * Dispatches pending instructions from the B2B inbound directory. * * @jmx:managed-operation */ public void processPendingInstructions() { // this method will be exposed in the mbean } Check the ServiceMBeanSupport class for more details (it's a JBoss class) in your ant script somethink like: <taskdef name="jmxdoclet" classname="xdoclet.modules.jmx.JMXDocletTask" classpathref="xdoclet.path"/> <jmxdoclet destdir="${build.generate.dir}" excludedtags="@version,@author"> <fileset dir="${src.dir}"/> <mbeaninterface/> <jbossxmbean destdir="${build.sar.dir}/META-INF" prefixWithPackageStructure="false"/> </jmxdoclet> Regards, Stephane ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user