-
1. Re: Notification.getSource() what should it return?
juha Apr 29, 2002 2:46 AM (in response to azakkerman)yes its a "known issue" ( a feature ? :) ) of the 1.0 implementation.... should be fixed in the current head IIRC.
-- Juha -
2. Re: Notification.getSource() what should it return?
azakkerman Apr 29, 2002 2:38 PM (in response to azakkerman)> yes its a "known issue" ( a feature ? :) ) of the 1.0
> implementation.... should be fixed in the current
> head IIRC.
>
> -- Juha
Well, as I said before, the Notification class from the HEAD seems to just return the source of the Event (albeit a copy of it), not the ObjectName. So it appears not to be fixed. -
3. Re: Notification.getSource() what should it return?
juha Apr 30, 2002 4:19 AM (in response to azakkerman)did you try it, or are you just looking at the source?
The notification class *should* return the source of the event, its the servers responsibility to map that reference to object name.
-- Juha -
4. Re: Notification.getSource() what should it return?
azakkerman Apr 30, 2002 9:43 AM (in response to azakkerman)> did you try it, or are you just looking at the
> source?
>
> The notification class *should* return the source of
> the event, its the servers responsibility to map that
> reference to object name.
>
> -- Juha
I just looked at the source. I am confused at how to use it then. Can I just typecast the result of getSource() to ObjectName? -
5. Re: Notification.getSource() what should it return?
adrian.brock Apr 30, 2002 10:20 AM (in response to azakkerman)Yes,
If you register your listener with the MBeanServer.
Regards,
Adrian