Chapter 9. JBoss MBean Services
9.1. Writing JBoss MBean Services
- If you want specific methods to be called on your MBean, declare those methods in your MBean interface. This approach allows your MBean implementation to avoid dependencies on JBoss specific classes
- If you are not bothered about dependencies on JBoss specific classes then you may have your MBean interface extend the
ServiceMBeanSupportclass provides implementations of the service lifecycle methods like
stop. To handle a specific event like the
start()event, you need to override
startService()method provided by the ServiceMBeanSupport class.