-
1. Re: Order of method calls for MBeanRegistration
schaefera Jun 19, 2002 9:26 PM (in response to cfaucher)You can't change the order because this is part of the JMX spec. Note that you can hand over constructor arguments in the like:
<mbean ... >
...
...
Note that the list of arguments must match an available constructor in your MBean and that the type is important and that you don't now what it means in the service.xml file.
Have fun - Andy -
2. Re: Order of method calls for MBeanRegistration
davidjencks Jun 20, 2002 1:39 AM (in response to cfaucher)You might want to implement the jboss service lifecycle, create/start/stop/destroy called in order by the container. setAttributes will be called before create. You don't have to implement all te methods as I recall... usually I use the non-dynamic ServiceMBeanSupport base class and a standard mbean.
-
3. Re: Order of method calls for MBeanRegistration
cfaucher Jun 20, 2002 8:46 AM (in response to cfaucher)
Thanks for the suggestions and answers.
One more stupid question: could you point me to the interface/class name for the JBoss service interface?
Cheers!
Christian Faucher -
4. Re: Order of method calls for MBeanRegistration
davidjencks Jun 20, 2002 10:00 AM (in response to cfaucher)org.jboss.system.Service, in the system module. I'm not sure you need to implement the interface explicitly if you have a dynamic mbean. The Container class is dynamic and uses the lifecycle stuff, you could compare. (server module, org.jboss.ejb.Container).
If you decide on a standard mbean, you want your interface to extend ServiceMBean and might want your class to extend ServiceMBeanSupport. -
5. Re: Order of method calls for MBeanRegistration
cfaucher Jun 20, 2002 11:17 AM (in response to cfaucher)Thanks for the info!
Cheers,
Christian Faucher