Oki,
I tried with 9.0.0.Alpha1 but i receive only one notification (jmx attribute
change) and not the start / stop notifications.
I register my listener this way:
final ObjectName webServerName =
ObjectName.getInstance("jboss.web:service=WebServer");
LOGGER.debug("Enregistrement du listener pour le mbean
jboss.web:service=WebServer");
mBeanserver.addNotificationListener(webServerName, this,
null, null);
LOGGER.debug("Récupération du mbean
jboss.system:type=Server");
final ObjectName serverName =
ObjectName.getInstance("jboss.system:type=Server");
LOGGER.debug("Enregistrement du listener pour le mbean
jboss.system:type=Server");
mBeanserver.addNotificationListener(serverName, this,
null, null);
LOGGER.info("Fin de l'initialisation du listener");
Is it still the way to do it or do wildfly supply a new API to register
listeners ?
Thank you for your help.
--
View this message in context:
http://wildfly-development.1055759.n5.nabble.com/Proposal-to-add-notifica...
Sent from the WildFly Development mailing list archive at
Nabble.com.