Sep 6th, 2007, 05:25 PM
Remotely accessing MBean attributes
I am attempting to remotely connect to an MBeanServer, and then read the attributes of a registered MBean.
The MBean I am trying to read from shows the name "java.lang:type=Memory" and has the MBean java class as "sun.management.MemoryImpl" on the servers jconsole screen.
My client spring config file is attached.
As far as the java side code is concerned I have the following:
ApplicationContext context = new FileSystemXmlApplicationContext("SpringJmxClient.x ml");
MBeanServerConnection clientConnnector = (MBeanServerConnection) context.getBean("clientConnector");
//after this i dont know how to read the MBeans attributes
Any help would be greatly appreciated.