WASv126.96.36.199: JMX NotificationListener not working for ListenerPort events?
Joined: Jan 14, 2005
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 v188.8.131.52 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...
Thanks for any help on this one, Wim.
Joined: Sep 24, 2009
I know this post is kind of old, but I'm experiencing exactly the same problem. Did you find another way to solve your problem? (apart from polling the Listener Port attribute).