[jboss-user] [Microcontainer] - Re: migrating from ServiceMBeanSupport

alesj do-not-reply at jboss.com
Thu Nov 29 08:30:37 EST 2007


And an example of dependency?

Dunno how lifecycle works if your mbean is not an instance of Service anymore, or if it's wrapped in some Service impl ...


  |    public void installAction(ServiceControllerContext context) throws Throwable
  |    {
  |       Service service = context.getServiceProxy();
  |       service.start();
  | 
  |       context.getServiceContext().state = ServiceContext.RUNNING;
  | 
  |       ObjectName objectName = context.getObjectName();
  |       ServiceController serviceController = context.getServiceController();
  |       serviceController.sendControllerNotification(ServiceMBean.START_EVENT, objectName);            
  |    }
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108877#4108877

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108877



More information about the jboss-user mailing list