I have a requirement where in I need to get the attribute of the MBean that I have exposed into a Jsp page. For this I was trying to do the below peice of code in my servlet
RMIAdaptor server = (RMIAdaptor) ic.lookup("jmx/rmi/RMIAdaptor");
ObjectName name = new ObjectName("jboss:service=JobMonitor");
MBeanInfo info = server.getMBeanInfo(name);
MBeanAttributeInfo attrInfo = info.getAttributes();
Is there any ways I can get the value of the MBeanAttributeInfo object that i fetch or is there any other means of working on my requirements?
MBeanServer.getAttribute(ObjectName name, String attribute)