Announcement Announcement Module
Collapse
No announcement yet.
Monitoring WebLogic MBeans Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Monitoring WebLogic MBeans

    hi,

    I am new with Spring.
    I would like to know how can i use Spring for Monitoring WebLogic MBeans?

    for example (the old code):
    the data is:
    host = "xxx"
    port = 7001
    username = "yyy"
    password = "zzz"
    protocol = "t3"
    urlPath="/jndi/weblogic.management.mbeanservers.domainruntime"

    JMXServiceURL serviceURL = new JMXServiceURL(protocol,host, port,urlPath);
    JMXConnector connector = JMXConnectorFactory.connect( serviceURL, h );
    MBeanServerConnection connection=connector.getMBeanServerConnection();
    Set set = connection.queryNames( null, null )

    How can i use Spring to change this code?
    Which classes or package should i use?

    Thanks.

  • #2
    I use spring-jmx with weblogic jmx beans. Checkout http://edocs.bea.com/wls/docs92/prog...g.html#1071751. You didn't mention what version of weblogic you are using.

    One thing I have learned is that on 9.x and up, on the server side you should locate the mbean server with a jndi lookup.

    Also see http://forum.springframework.org/showthread.php?t=19857

    Comment


    • #3
      TKV

      Comment


      • #4
        I already saw this examples,but..

        I already saw this examples,but i would like to know if there is another way to use Spring framework:
        1. How can i pass data to the xml variables ${WS_HOST}:${WS_PORT}
        I get this data from the user on runtime.
        2. My java code is:
        ApplicationContext AC = new FileSystemXmlApplicationContext("beans.xml");
        MBeanServerConnection r = (MBeanServerConnection)AC.getBean("runtimeMbeanSer verConnection");
        r.queryNames(null, null);

        Is this is the recommended way?

        Thanks,

        Comment

        Working...
        X