Author:
Lalit_Agarwalla

Message:
The JCAMessageEndpoint MBean does not explicitly emit any notification about 
state change. 
Rather, it logs an Info message using RAS Logging service whenever there is a 
state transition. 
The RAS Logging service automatically circulates JMX notification for each Info 
message it is given. 
Hence, the client needs to listen for Info messages on RAS Logging service as 
explained at the link given below.                    

http://www.ibm.com/developerworks/websphere/techjournal/0304_lauzon/lauzon.html

You will need to use the RasLoggigService mbean to get notifications: something 
like

ObjectName queryMBean = new 
ObjectName("WebSphere:type=RasLoggingService,process=server1,*"); 

We can filter the notification up to some extent, still there are too many 
notifications generated.

NotificationFilterSupport filter = new NotificationFilterSupport();
filter.enableType(NotificationConstants.TYPE_RAS_WARNING);
adminClient.addNotificationListener(rasMBean, listener, filter, null); 

This filter show only the WARNING logging entries. Still there will be too many 
notifications. This is an ugly way for a simple requirement.

To respond to this post, please click the following link:
<http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14488110>

____________________________________
Unsubscribe via the "binocular" icon on the web

Reply via email to