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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...