Announcement Announcement Module
Collapse
No announcement yet.
which file this code from?? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • which file this code from??

    Hi all,

    I've found the trouble like this thread :

    http://forum.springframework.org/showthread.php?t=30086

    but which file include code below :

    url = new JMXServiceURL("service:jmx:rmi://localhost:23791/oc4j/MyApp");
    Hashtable env = new Hashtable();
    Hashtable credentials = new Hashtable();
    credentials.put("login", "oc4jadmin");
    credentials.put("password", "welcome");
    env.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACK AGES, "oracle.oc4j.admin.jmx.remote");
    env.put(JMXConnector.CREDENTIALS, credentials);
    connector = JMXConnectorFactory.newJMXConnector(url, env);
    connector.connect();
    //Retrieve the MBeanServerConnection instance that acts as a proxy
    //for the OC4J MBeanServer we are connecting to.
    MBeanServerConnection mBeanServerConnection = connector.getMBeanServerConnection();
    proxyName = new ObjectName("MyApp:MBean=MyMonitor");
    MBeanInfo object222 = mBeanServerConnection.getMBeanInfo(proxyName);
    mBeanServerConnection.getAttribute(proxyName,"Rece iving");
    anybody could help me?
    Last edited by muhkah; Oct 31st, 2007, 09:54 PM.
Working...
X