users@glassfish.java.net

MBeans definition and registering using annotations only

From: <forums_at_java.net>
Date: Wed, 28 Nov 2012 06:00:36 -0600 (CST)

Hello Everybody, Is it possible to define and register a MBean using
annotations only? I think that the @MBean, @ManagedOperation, etc. used to be
in the JDK 7 but for some reason - they're not
(http://docs.oracle.com/javase/7/docs/api/javax/management/package-summary.html).
Is there any Glassfish proprietary way of annotating MBeans, exposing their
operations and attributes *and registering it* so there is no need for the
developer to invoke any of this:
ManagementFactory.getPlatformMBeanServer().registerMBean(myBean, new
ObjectName(myMBeanName)); Are there any information about JMX 2.0 progress?
Will it ever arrive? Thanks in advance, Piotr

--
[Message sent by forum member 'PiotrNowicki']
View Post: http://forums.java.net/node/892766