1 Reply Latest reply on Jan 4, 2005 9:35 AM by Dimitris Andreadis

    Can a non-MBean use JMX notification

    Steven Gao Newbie

      if a non-MBean class implement NotificationListener I/F, can it receive notifications send by MBeans?
      if a non-MBean class implement NotificationBroadcastor I/F, can it sent notifications to MBeans?

        • 1. Re: Can a non-MBean use JMX notification
          Dimitris Andreadis Master

          You could use those interfaces outside an MBeanServer and do whatever you want.

          However, the typical JMX usage is to go through the MBeanServer when registering for Notifications. In this regard:

          a) Non MBean listeners can receive notifications from MBeans (i.e. listener can be anyone)
          b) MBeans can only receive notifications from other MBeans (because they'll make their registrations through the MBean server, and the MBeanServer can only register MBeans)