Do you extend ServiceMBeanSupport?
start() invokes startService()
Does your interface extend Service or expose
start/stop are the real methods invoked by
the service controller.
Yes. I do the following "public class MobileWebUpdateQuery extends org.jboss.system.ServiceMBeanSupport implements MobileWebUpdateQueryMBean
and my startService starts with " public void startService() throws Exception". My interface files starts with "public interface MobileWebUpdateQueryMBean extends org.jboss.system.ServiceMBean" and I do not define start() or stop(). I am running jboss 3.0.6 under Linux 2.4.18. I have tried changing startService() to start() without any change.
Just for the record. The problem seemed to be that my jboss-service.xml had a depends on a Message bean. When I took out the depends the system runs the startService(). The message bean works fine in both configurations so I am not sure what is not starting.
I too am having this problem.
I'm implementing Service and extending ServiceMBeanSupport.
The MBean get's configured and is visible via the JMX Web Agent.
The problem is that create(), start(), createService(), startService() methods are never called.
Could anyone start me in the right direction of tracking this problem down?
BTW: I'm registering the MBean via the following in user-service.xml.
No, depends or anything, so I don't think I'm getting hung up there.
You have not exposed create/start
on TestMBean (the management interface)
Add extends ServiceMBean to it.
That does indeed fix the problem. Thank you for the quick response.