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

Implementation of MBeanServerRequestMessage.ADD_NOTIFICATION_LISTENERS !complete

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.0.1
    • Component/s: core-svc
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      1.0.1
    • CPU:
      generic
    • OS:
      generic

      Description

      ServerIntermediary assumes that the client always sends a single listener:

      case MBeanServerRequestMessage.ADD_NOTIFICATION_LISTENERS:
      if (logger.traceOn()) {
      logger.trace("handleRequest",
      "Handle a ADD_NOTIFICATION_LISTENERS request.");
      }

      // Ideally, we should update this code to loop over the array.
      // However, our implementation currently always sends a single
      // ObjectName. The optimization that would send an array
      // of them hasn't been implemented yet.
      //

      This assumption is obviously false when client and server don't come from
      the same implemementation.

      Also the returned type sent by our server and assumed by our client seems
      to be Integer instead of Integer[], which means that our JMXMP client and
      servers can only operate with each other.

      (see ClientIntermediary and ServerIntermediary).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sjiang Shanliang Jiang (Inactive)
                Reporter:
                dfuchs Daniel Fuchs
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: