This content has been marked as final.
Show 2 replies
-
1. Re: MbeanServer
juhalindfors Aug 7, 2003 7:51 PM (in response to tonik)createMBean() is instantiate + registerMBean()
-
2. Re: MbeanServer
juhalindfors Aug 7, 2003 7:53 PM (in response to tonik)
> Im using ModelMbeans with my implementation. I am
> under the impression that ModelBeans can be any java
> class which is defined in the xml is this true or
> should it extend an interface still?
Sort of. You can set any POJO as the managed resource for a ModelMBean instance. The ModelMBean instance implementation is provided for you by the JMX implementation.
The interface you expose is declared with the JMX metadata classes. Notice that you need to set the POJO reference and metadata before you register the ModelMBean instance to MBean server.
-- Juha