Hi,
I'm running HornetQ 2.1.2 on JBoss 5.1.0 and I'd like to receive notifications when attributes of a specific Queue change. Specifically the attributes consumer count, message count, and paused. I've followed the Management Notifications Example to configure a Topic to receive management notifications and I do receive messages on the Topic for things like binding added and consumer created but that's not what I'm looking for. Is there a way to configure a listener to monitor specific queue(s) for attribute change notifications?
I've also tried adding a listener directly to the MBeanServerConnection object but I get the following error:
java.lang.IllegalArgumentException: The specified MBean [org.hornetq:module=JMS,type=Queue,name="myQueue"] is not a NotificationBroadcaster object.
Thanks.
We won't send a notification every time we send a message. You should just lookup for messages through a consumer on that case.
That would suck in performance terms. It's not what management was meant for.