-
1. Re: Deploy Simple MBean Fail
lawrenceleung Feb 7, 2005 4:50 AM (in response to lawrenceleung)Test
-
2. Re: Deploy Simple MBean Fail
dimitris Feb 7, 2005 4:57 AM (in response to lawrenceleung)see http://www.jboss.org/wiki/Wiki.jsp?page=ExampleHelloWorldService
Your MBean must implement an interface TMBeanService1MBean interface that, in turn, extends org.jboss.system.Service).
The name is important since JMX uses this naming convention for standard MBeans, that class Z must implement ZMBean.
An alternative for TMBeanService1MBean is to extend org.jboss.system.ServiceMBean, and you class to extend in addition ServiceMBeanSupport. This provides a somewhat tighther integration with the jboss service lifecycle model. -
3. Re: Deploy Simple MBean Fail
lawrenceleung Feb 7, 2005 10:57 PM (in response to lawrenceleung)"
see http://www.jboss.org/wiki/Wiki.jsp?page=ExampleHelloWorldService
Your MBean must implement an interface TMBeanService1MBean interface that, in turn, extends org.jboss.system.Service).
The name is important since JMX uses this naming convention for standard MBeans, that class Z must implement ZMBean.
An alternative for TMBeanService1MBean is to extend org.jboss.system.ServiceMBean, and you class to extend in addition ServiceMBeanSupport. This provides a somewhat tighther integration with the jboss service lifecycle model.
_________________
Regards
/Dimitris
"
Hello Dimitris :
Thanks for your reply.
BUt I cannot find the class "org.jboss.system.ServiceMBeanSupport"
I am using Jboss4 version.
Thanks in advance.
Lawrence -
4. Re: Deploy Simple MBean Fail
darranl Feb 8, 2005 4:19 AM (in response to lawrenceleung)Look in jboss-system.jar in the folder {jboss.home}/lib