-
1. Re: Notification proposal
davidjencks Dec 25, 2002 4:39 PM (in response to dsundstrom)I think you can already do this by adding your notification listener to the MBeanServer, supplying the object name you are interested in listening to. I think the methods on an mbean are there primarily so the MBeanServer has some hooks to use.
Did I misunderstand? -
2. Re: Notification proposal
adrian.brock Dec 28, 2002 9:27 AM (in response to dsundstrom)If I understand correctly, you want to do something
like this - probably not as general as this :-)
notificationServer.addNotificationListener(
new ObjectName("*:type=Invalidator,*"),
new ObjectName("*,type=Invalidated,*"),...);
or
String invalidateMessageType = "org.jboss.invalidate";
notificationServer.addNotificationListener(
invalidateMessageType,
new ObjectName("jboss:service=me"),...);
And the server will maintain the links as MBeans
are removed/added.
I'll look at doing this when I do the jmx1.2 compliance.
There are other changes required in the notification
aspect.
Regards,
Adrian