-
1. Re: Automatically MBean registration
tremes Aug 26, 2014 2:26 AM (in response to homich)Hi,
I am not sure, if it is exactly what you are looking for, but you can try https://deltaspike.apache.org/. There is available MBean annotation (https://git-wip-us.apache.org/repos/asf?p=deltaspike.git;a=blob;f=deltaspike/core/api/src/main/java/org/apache/deltaspik…) in the core module or you can register your MBeans in your own CDI extension.
-
2. Re: Automatically MBean registration
homich Aug 26, 2014 2:37 AM (in response to tremes)So, i will annotate my bean with this, and what should i do next?
-
3. Re: Automatically MBean registration
tremes Aug 27, 2014 8:11 AM (in response to homich)If you use DeltaSpike, then the annotated bean would be registered in JMX and you can expose its method via JMX console using @JmxManaged annotation. Very simple example is available at deltaspike-examples/mbeanTranslator/src/main/java/org/jboss/examples/deltaspike/mbeanTranslator at master · rsmeral/delt…
-
4. Re: Automatically MBean registration
homich Aug 27, 2014 8:44 AM (in response to tremes)I annotate bean as @MBean and annotate some method as @JMXManaged but it still doesn`t works