Thanx for that Dimitris.
I have one more problem with JMX.
How can I query jboss (using JMX programmatically) to get the list of all the components running in jboss and dependencies of each component in jboss programmatically.
I have written a peice of code to get the list of all components in jboss:
MBeanServer server = MBeanServerFactory.findMBeanServer("jboss");
MBeanServer server = MBeanServerFactory.findMBeanServer("jboss.j2ee");
When I run this code, it is throwing the following exception
java.lang.IllegalStateException: No 'jboss' MBeanServer found
Thanx for that Fabiano
I am now able to get the reference to the jboss MBean server and discover the components running in jboss.
Is there any method to find the dependencies of a component in jboss using JMX programmatically.
It will be very helpful to me if u can come up with some sugesstions.