This content has been marked as final.
Show 1 reply
-
1. Re: Adding NotificationFilters to the listeners of JBossMoni
dimitris Sep 17, 2004 5:05 PM (in response to gabramovic)I believe it is a bit strange how the jboss monitors have been implemented.
Instead of the listeners registering themselves with the broadcaster, the broadcaster registers the listeners!
If you want to play with notifications take a look at:
org.jboss.monitor.services.NotificationListener and its baseclass
http://www.jboss.org/wiki/Wiki.jsp?page=ExampleMinimalNotificationListener
You can even use this external MBean (say X) to subscribe listener MBean (L) for arbritrary notifications from any number of broadcasters using type filtering too, supporting also dynamic subscriptions/unsubscriptions (thus solving any dependency problems)
Regards
/Dimitris