aspose file tools*
The moose likes Websphere and the fly likes WASv5.1.1.6: JMX NotificationListener not working for ListenerPort events? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "WASv5.1.1.6: JMX NotificationListener not working for ListenerPort events?" Watch "WASv5.1.1.6: JMX NotificationListener not working for ListenerPort events?" New topic
Author

WASv5.1.1.6: JMX NotificationListener not working for ListenerPort events?

Wim Praet
Greenhorn

Joined: Jan 14, 2005
Posts: 5
Hello,

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 v5.1.1.6 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.
Martin Villafane
Greenhorn

Joined: Sep 24, 2009
Posts: 2
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).

Thanks
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18656
    
    8

Martin Java wrote:I know this post is kind of old...


Actually it's not just "kind of old". I think hoping that the original poster, who hasn't posted here for over four years, is a vain hope.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WASv5.1.1.6: JMX NotificationListener not working for ListenerPort events?