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

JMX.newMBeanProxy(MBeanServerConnection,ObjectName,Class,true) does not return NotificationEmitter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 6
    • 6
    • core-svc
    • b83
    • generic
    • generic

      try this:

      MBeanServerDelegateMBean delegate =
           JMX.newMBeanProxy(ManagementFactory.getPlatformMBeanServer(),
                             MBeanServerDelegate.DELEGATE_NAME,
                             MBeanServerDelegateMBean.class,
                             true);

      NotificationEmitter emitter = (NotificationEmitter)delegate;

      => ClassCastException

            dfuchs Daniel Fuchs
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: