-
1. Re: NotificationBroadcasterSupport questions
adrian.brock Jun 26, 2003 12:16 PM (in response to ivelin.ivanov)1) That does look suspicous.
I'd suggest using a ConcurrentHashMap.
2) Somebody else mentioned this a while ago.
They even suggested that it should unregister
a listener that throws an unchecked throwable.
We couldn't find this behaviour defined in the spec.
Regards,
Adrian -
2. Re: NotificationBroadcasterSupport questions
ivelin.ivanov Jun 29, 2003 3:09 AM (in response to ivelin.ivanov)
I will make the changes and propose the patch.
I am also working on a HANotificationBreadcasterSupport, which is the same use as the regular one, only it is symmetric throughout a cluster partition. Invoking sendNotification() on any of the broadcasters will notify all listeners that are subscribed to a copy of the brodacaster mbean with the same name and in the same partition as the notifying broadcaster.
This will hopefully turn into a convenient farming tool.
More details to follow ... -
3. Re: NotificationBroadcasterSupport questions
ivelin.ivanov Jul 5, 2003 8:41 PM (in response to ivelin.ivanov)commited the patch to the notif.broadcaster and also
completed my work on the clustered version:
http://www.cocoonhive.org/articles/jboss/20030705/JBoss322-HAExamples.html -
4. Interesting article
sanne Jul 7, 2003 4:42 AM (in response to ivelin.ivanov)Hi,
Here is an article on constructing listener lists in a multi-threaded environment :
http://www.javaworld.com/javaworld/jw-03-1999/jw-03-toolbox.html
The approach is unconventional.
It seems the problem has already been solved, but anyway.
Sanne