-
1. Re: How to get mbeans dependence relationship in program?
dimitris Oct 12, 2004 4:14 AM (in response to debarcar)You can call listDeployed() on jboss.system:service=MainDeployer and get back a full list of DeploymentInfo objects, that contain all that you need.
Good luck :) -
2. Re: How to get mbeans dependence relationship in program?
debarcar Nov 10, 2004 9:55 PM (in response to debarcar)In the MainDeployer, after get the DeploymentInfo, I only can get the ObjectName from the DeploymentInfo's "mbeans" field. It seems there is not dependence information in the ObjectName.
But I found the ServiceController can provide the information I need through ServiceContext. And the new question issue: Sometimes the dependence relationship in the xml file (e.g.. a jms destination depends on a destination manager) can not get in the ServiceContext. It seems the dependence relation in the ServiceContext is not exactly same as in the xml files.
Thanks and best regards!!
Debarcar -
3. Re: How to get mbeans dependence relationship in program?
dimitris Nov 11, 2004 6:50 AM (in response to debarcar)You are correct about the ServiceController, this is where you get the dependency info (not from the MainDeployer).
I just checked the output from listDeployed() in my jmx-console and it looks ok to me:ObjectName: jboss.mq:service=DestinationManager state: RUNNING I Depend On: jboss.mq:service=MessageCache jboss.mq:service=PersistenceManager jboss.mq:service=StateManager Depends On Me: jboss.mq.destination:service=Topic,name=testTopic jboss.mq.destination:service=Topic,name=securedTopic jboss.mq.destination:service=Topic,name=testDurableTopic jboss.mq.destination:service=Queue,name=testQueue jboss.mq.destination:service=Queue,name=A jboss.mq.destination:service=Queue,name=B jboss.mq.destination:service=Queue,name=C jboss.mq.destination:service=Queue,name=D jboss.mq.destination:service=Queue,name=ex jboss.mq:service=SecurityManager jboss.mq.destination:service=Queue,name=DLQ