Re: jmx question
"Simone Bordet" <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, On 9/24/07, salztig <[email protected]> wrote: > Hi, > > just a jmx question. > > Is is possible that a class implements more than one MBeans? > > I'm nerly sure that this isn't possible using Standard MBeans, but I'm not > so confident whit jmx technology to know if this could be possibile with > other MBeans types (Dynamic, Open....) Dynamic MBeans return the management interface that they want, implementing getMBeanInfo(), and they're not bound to implement interfaces. Standard MBeans have to implement one interface that gives them the status of MBean (the className + "MBean" thing), but that interface can extends other interfaces, so that: interface FooMBean { ... } interface BarMBean { ... } interface BazMBean extends FooMBean, BarMBean { ... } Now MBean Baz can be seen as extending MBeans Foo and Bar. Simon -- http://bordet.blogspot.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/