2 Replies Latest reply on Nov 2, 2007 1:27 AM by Alfred Thomas

    JMX notifications

    Alfred Thomas Newbie

      I am having difficulty in getting notifications to work
      I have 2 MBeans and one must dispatch and the other receive notifications.

      The dispatcher extends ServiceMBeanSupport (and also uses the @Service annotation). It send by creating a notification and sending it with:
      Notification notification = new Notification("BFLO_EVENT", this, getNextNotificationSequenceNumber(), "TEST MESSAGE");

      The receiver extends ListenerServiceMBeanSupport and overrides handleNotification2.
      Now in the startService method I try to subscribe to notifications by using various versions of subscribe(), but the handleNotification2 method is never called. (I am trying to subscribe dynamically without config files)

      Can someone please show me where im going wrong?