I’m successfully connecting to a custom module through a JMX client, I can invoke methods remotely without problems.
Now I’d like to have the module emits notifications to the client.
The module is declared as follows:
public class StreamManager extends ModuleBase implements NotificationEmitter
I’ve provided an implementation for the methods declared in the interface (the implementation actually delegates to a private NotificationBroadcasterSupport object).
On the client side I connect to the module and add a notification listener:
mbeanServerConnection.addNotificationListener(streamManagerObjectName, myListener, null, null);
However, the addNotificationListener of the module (StreamManager) is never invoked and therefore notifications are not delivered.
Might there be any reason that prevents addNotificationListener of the module to be invoked?
Thanks for any help