Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8035408

Misprint in "Connecting to the JMX Agent Programmatically" chapter

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux

      Backports

        Description

        A DESCRIPTION OF THE PROBLEM :
        The 'J' letter is missed in the 'Example 2-3' code. Should be:
        JMXServiceURL u = ...
        but now is:
        MXServiceURL u = ...


        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        Example 2-3 Creating a Connection Using JMXConnectorFactory.connect
        JMXServiceURL u = new JMXServiceURL(
          "service:jmx:rmi:///jndi/rmi://" + hostName + ":" + portNum + "/jmxrmi");
          JMXConnector c = JMXConnectorFactory.connect(u);

        ACTUAL -
        Example 2-3 Creating a Connection Using JMXConnectorFactory.connect
        MXServiceURL u = new JMXServiceURL(
          "service:jmx:rmi:///jndi/rmi://" + hostName + ":" + portNum + "/jmxrmi");
          JMXConnector c = JMXConnectorFactory.connect(u);


        URL OF FAULTY DOCUMENTATION :
        http://docs.oracle.com/javase/7/docs/technotes/guides/management/agent.html#gdevg

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                pardesha Pardeep Sharma
                Reporter:
                webbuggrp Webbug Group
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Due:
                  Created:
                  Updated:
                  Resolved: