3 Replies Latest reply on Mar 21, 2011 12:59 AM by Anders Welen

    How to Know the  No of Messages In Queue/Topic

    Vinay Bommarati Newbie

      Hello All

       

      When I have created Topic / Queue through  Jboss Admin Console or Through xml files , those are created and i cn view those Status & Number of messages procesing by them through Admin Console .

       

      But If write jboss.xml for creating destinations  ( <create-destination> to true & Placing In Ear/Jar)   , i can not view those topic/queue status in Admin Console even though they are created successfully .

       

      So ,pls help is there any way to view the number of messages received  by queue/Topics that  is created  through jboss.xml

       

      And One more problem iam facing is , some times the topic status is coming down in AdminConsole .......& If i click the node of  that topic , its giving me a big list of exception in console.........So , In what Situations the status of Topi/Queue will be down even though they are created Successfully

        • 1. How to Know the  No of Messages In Queue/Topic
          Anders Welen Apprentice

          You can always find them in the JMX console.

           

          Use the following "ObjectName Filter" to try to find all queues (exchange to "Topic" if that is what you want to search for)

           

               "*:service=Queue,*"

           

          (The Adminconsole has its limits, but hopefully someone else can make it a bit smarter or point out howto set it up properly)

          • 2. How to Know the  No of Messages In Queue/Topic
            Vinay Bommarati Newbie

            Hi Anders ..

             

             

            Thank you very much for answering for my question ...But to be frank , i dint get that ....Iam new to Jboss Messaging...So , can you pls pls  elaborate it like how & where to add ObjectName Fileter that you specified ......??

             

             

            And One more thing is that , After Creating Topic Its Status is Coming as down in admin Console ...I have Created Topic in this fashion :

            <mbean 

              code="org.jboss.jms.server.destination.TopicService" 

              name="jboss.messaging.destination:service=Topic,name=ReceivingTopic" 

              xmbean-dd="xmdesc/Queue-xmbean.xml">

              <attribute name="JNDIName">MessageBeanTopic</attribute> 

              <depends optional-attribute-name="ServerPeer"> 

               jboss.messaging:service=ServerPeer 

              </depends>   

            <depends> 

               jboss.messaging:service=PostOffice 

              </depends> 

            </mbean>

             

            Is it proper way to create ?? Pls help

            • 3. How to Know the  No of Messages In Queue/Topic
              Anders Welen Apprentice

              The config looks fine!

               

              Open the JMX Console (http://localhost:8080/jmx-console) and look under "jboss.messaging.destination". You should find some

              MBeans there that you can use to get statistics about your JMS resources!