KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > jmx > SimpleJMX


1 package test.jmx;
2
3 /**
4  * Example of a very simple JMX MBean
5  *
6  * @jmx.mbean
7  * name=":service=SimpleJMX"
8  * @jboss.service
9  * servicefile="jboss-simple"
10  * @jboss.service
11  * classpath="lib"
12  * @jboss.service
13  * classpath="otherPath"
14  * archives="someLib.jar"
15  */

16 public class SimpleJMX implements test.jmx.SimpleJMXMBean {
17     /**
18      * Create a greeting.
19      *
20      * @jmx.managed-operation
21      */

22     public String JavaDoc hello(String JavaDoc name) {
23         return "Hello" + name + "!";
24     }
25
26 }
27
Popular Tags