2 Replies Latest reply on Aug 7, 2002 1:55 PM by Andrew Sharpe

    can I call sendNotification on an mbean?

    Andrew Sharpe Newbie

      I have two mbeans (sender and listener). One registers itself as a listener for (using server.addnotificationlistener) the other. I create an mbeanserver object and then create each of the mbeans and register them on the server I created. I start the listener using "invoke". Then I call sender.sendNotification() but the listener never receives it.

      Is it possible to create an mbean server and two mbeans on the fly, then call sendnotification on one of them and have the other one receive the notification? Anyone have an example of how to do this? I need it to write a junit test for my mbeans that communicate with notifications.