I have created a Dynamic MBean for use with jboss 3.0.3.
It implements org.jboss.system.Service:
public class LogicFlow extends NotificationBroadcasterSupport implements DynamicMBean, org.jboss.system.Service {
I am deploying to jboss on my local machine (win2000), so the jboss-system.jar that I compile with is the same that jboss uses to startup.
Intellij and Ant both compile this class without errors, verifying that the 4 Service methods are all implemented by LogicFlow.
Jboss, however, spits out a warning that does not implement any Service methods.
Why would that be?
Jay
Because it looks at the metadata returned by
getMBeanInfo()
you need to return MBeanOperationInfo elements
for create/start/etc depending upon which you use.
Regards,
Adrian