Results 1 to 1 of 1

Thread: Remotely accessing MBean attributes

  1. #1
    Join Date
    Sep 2007
    Posts
    4

    Smile 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.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •