0 Replies Latest reply on Jun 21, 2013 11:00 AM by Ambrosia Cob

    Unable to read message count from MbeanConnection

    Ambrosia Cob Newbie

      I was able to read message count from MBeanServerConnection using JBoss 6.0. But after updating JBoss 6.1 my messaging is working fine but messageCount is always 0.


      This is the way i am reading messageCount:


      MBeanServerConnection mbeanServer = JmxConnector.getMBeanServerConnection();


      ObjectName objName=new ObjectName("jboss.as:subsystem=messaging,hornetq-server=default,jms-queue=userTransQueue");

      mbeanServer.getAttribute(objName, "messageCount")