Hi,

How can we receive JMX notifications for backend enable/disable events ?
We've made some tests using the SequoiaNotificationListener provided in the examples but even if we disable backend by hand (using the disable command in the JMX console) or by really disabling the MySQL service,
we never receive any notification about these events.
Are we missing something ?

The example provided by SequoiaNotificationListener is out of date.

JMX notifications related to backend state changes are sent to listeners registered with Backend's ObjectName and not VDB's ObjectName.

Backend's ObjectName is
  "sequoia:type=VirtualDataBase.Backend,VirtualDataBase={0},name={1}"
where 0 => vdb name
      1 => backend name

The type of notification for backend state change is AttributeChangeNotification[1] which contains both the previous and new backend state value as defined in BackendState[2].

Hope it helps,
jeff

--

[1] http://java.sun.com/j2se/1.5.0/docs/api/javax/management/AttributeChangeNotification.html
[2]  http://sequoia.continuent.org/doc/2.10/api/index.html

_______________________________________________
Sequoia mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/sequoia

Reply via email to