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

MBeanServerFactory.createMBeanServer() references nonexistent ServiceName

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b42
    • CPU:
      generic
    • OS:
      generic

      Description

      The documentation for the createMBeanServer() and newMBeanServer() methods in MBeanServerFactory says:

      "Return a new object implementing the MBeanServer interface with a standard default domain name. The default domain name is used as the domain part in the ObjectName of MBeans when the domain is specified by the user is null.

      The standard default domain name is defined in ServiceName.DOMAIN."

      But ServiceName doesn't exist in the JMX spec (it is part of that spec's origins in Sun's Java DMK product).

      The Reference Implementation uses the string "DefaultDomain" as the standard default domain, and the test suite requires that string, so the specification should simply say:

      "The standard default domain name is <code>DefaultDomain</code>."

        Attachments

          Activity

            People

            Assignee:
            emcmanus Eamonn McManus
            Reporter:
            emcmanus Eamonn McManus
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: