This content has been marked as final.
Show 1 reply
-
1. Re: Wrapping POJOs as Mbeans
dimitris Nov 19, 2004 3:31 PM (in response to infectedrhythms)If you want to make your POJO appear as an MBean you *must* use an mbean + xmbean descriptor.
Extending ServiceMBeanSupport is useful if you want to do things like produce or consume notifications, invoke on other MBeans, etc., in general things that translate to your class having knowledge of JMX.
You can also do both, i.e extend ServiceMBeanSupport *and* use an mbean+xmbean descriptor
Using the xmbean descriptor allows you to:
add rich metadata descriptions
produce automatically AttributeChangeNotification on attribute updates
persist attribute changes
cache attribute values
add your own interceptors
...