Hi All,
I am trying to get notification of when a backend is taken offline via jmx
notifications. I assume that I add a NotificationListener in the following way:
(the first line is a call to a static method that returns a connected sequoia
MBeanServerConnection)
MBeanServerConnection delegateConnection =
MBeanServerConnectionFactory.getMBeanServerConnection(sequoiaClusterConfig,sequoiaClusterConfig.getLocalControllerIPAddress());
ObjectName vdb = JmxConstants.getVirtualDataBaseObjectName("vieo_ccs");
delegateConnection.addNotificationListener(vdb,this,null,null);
and I have a listener:
public void handleNotification(Notification notification, Object handback) {
System.out.println("Got notification " + notification.getMessage());
}
but when I take a backend offline via the sequoia console i don't receive the
notification.
Anyone have any ideas? I would prefer to use notifications rather than just
poll through the mbean to get backend statistics.
Thanks
Dave Cawthorn
<<winmail.dat>>
_______________________________________________ Sequoia mailing list [email protected] https://forge.continuent.org/mailman/listinfo/sequoia
