[jboss-user] [Management, JMX/JBoss] - JMX notifications
alfred.rsa
do-not-reply at jboss.com
Mon Oct 29 14:32:43 EDT 2007
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");
sendNotification(notification);
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?
Regards
Alfred
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099963#4099963
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099963
More information about the jboss-user
mailing list