Announcement Announcement Module
Collapse
No announcement yet.
Remotely accessing MBean attributes Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Remotely accessing MBean attributes

    Hello all,
    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.
    Thank you.
Working...
X