since this thread seems to be dead, I repeat my question here.
I have written following piece of code that adds a JMX NotificationListener for events from an MBean that represents a ListenerPort in Websphere v5.1 (I have v220.127.116.11 installed), following the example code from here :
However, when the ListenerPort is started or stopped, I don't get any notifications!
I tried to add notification listeners for other kind of events, like stopping or starting an application under WASv5.1 and those work fine.
Could it be that there is a bug in the JMX notification mechanism of ListenerPort MBeans?
In the meanwhile I ended up writing a scheduled Quartz Job that interrogates the 'started' attributed of the ListenerPort every couple of seconds to check if it is still up, and restart it in case it is stopped. However, this is not the preferred way of doing things I guess...