1 Reply Latest reply on Jun 21, 2011 12:08 PM by Clebert Suconic

    Queue attribute change notifications

    Carl Lewis Newbie



      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.