[wildfly-dev] Proposal to add notifications to WildFly management model and API

weedfly nono_du_31 at hotmail.fr
Tue Oct 21 05:19:24 EDT 2014


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-notifications-to-WildFly-management-model-and-API-tp5714484p5715149.html
Sent from the WildFly Development mailing list archive at Nabble.com.



More information about the wildfly-dev mailing list