Hello,

using : Eclipse 3M8, JBoss-Ide 1.2.330 nothing else...

I've spent a few days playing with MBeans and I would like to build them using 
jboss-ide... And I've got a few problems using XDoclet...

The goal would be to have a small tutorial about jmx & Jboss-ide.

I explain how I do, and I ask a few question that I would like the answer for :o)
I would like to know for example about the @jboss.xmbean that I find nowhere in 
xdoclet.. but it works !! Where does it come from ? 

Consider a simple MBean like that, I put my comments/question in bold : 


  | package tutorial.jmx;
  | 
  | import org.jboss.system.ServiceMBeanSupport;
  | 
  | 
  | /**
  |  * @jmx.mbean description = "My Description" name = 
"tutorial.jmx:service=MyService1" extends = "org.jboss.system.ServiceMBean"
  |  if my service uses JNDI, how do I inform about the dependancy ?
  |  *
  |  * @jboss.service servicefile="jboss"
  |  *
  |  @jboss.xmbean .. I've got no info about it in Xdoclet.. How to know I have to use 
it ?? I found it in this forum 
  |  * @jboss.xmbean  
  |  * 
  |  */
  | public class MyFirstService extends ServiceMBeanSupport implements MyFirstService {
  | 
  |     private String myName = "nothing";
  |     private String yourName = "init";
  |     
  |     /**
  |      * @jmx.managed-attribute access = "read-write"
  |      */
  |     public String getMyName() {
  |             return myName;
  |     }
  |     /**
  |      * @jmx.managed-attribute access = "read-write" description = "pour mettre le 
nom"
  |      */
  |     public void setMyName(String myName) {
  |             this.myName = myName;
  |     }
  | 
  |     /**
  |      * @jmx.managed-operation impact = "ACTION" description = "Something to do.."
  |      * @jmx.managed-parameter name="a" type="java.lang.String" description="well, 
a" 
  |      * @jmx.managed-parameter name="b" type="java.lang.String" description="well, 
b" 
  |      * @jmx.managed-parameter name="c" type="java.lang.String" description="well, 
c" 
  |      * @return
  |      */
  |     public int doSomething(String a, String b, String c) {
  |             this.myName = this.myName + "x" + a + "x" + b + "x" + c;
  |             return 3;
  |     }
  | 
  | 
  |     public void start() throws Exception {
  |             super.start();
  |             this.myName = "start";
  |     }
  | 
  |     public void stop() {
  |             super.stop();
  |             this.myName = "stop";
  |     }
  | }
  | 

here is my ant script : 


  | <target name="N10560" description="Standard JMX">
  | <taskdef classpathref="xdoclet.classpath" 
classname="xdoclet.modules.jmx.JMXDocletTask" name="jmxdoclet"/><jmxdoclet 
excludedTags="@version,@author,@todo"  destDir="src"  verbose="true"  
addedTags="@xdoclet-generated at ${TODAY},@copyright The XDoclet Team,@author 
XDoclet,@version ${version}" >
  | <fileset dir="src"  includes="**/*.java" />
  | <mbeaninterface/>
  | <jbossxmlservicetemplate servicefile="jboss"  destDir="src/META-INF" />
  | <jbossxmbean/>
  | <jbossxmldoc/>
  | </jmxdoclet>
  | </target>
  | 

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

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


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to