3 Replies Latest reply on Nov 9, 2003 5:46 PM by adrian.brock

    newbie question - number in queue?

    dhartford

      Hi all,
      Just started working on my first JMS project with Jboss, and this is great!

      I'm using an MDB for a simple point-to-point Queue to do Asynchronous processing.

      Is there a way for me to display how many are waiting in the Queue, how many have been processed today, and/or any other useful information? I have never done a Managed Bean/JMX if that is how to do it....

      Jboss 3.2.2, xdoclet 1.2b4 dev environment

      TIA!

        • 1. Re: newbie question - number in queue?

          This is already present in 3.2.2

          http://localhost:8080/jmx-console

          Look at
          jboss.mq:service=DestinationManager
          jboss.mq.destination:service=Queue
          for the message counters.

          Regards,
          Adrian

          • 2. Re: newbie question - number in queue?
            dhartford

            Ah...

            I looked through the source for 'console' module within JBoss using your reference, but could not find any code to display the count or any other information related to an Asynchronous JMS Queue.

            I also looked through the expanded jmx-console.war folder and the related JSP and class files and could not find how to display a count either.

            Forgive my ignorance, I guess I should have stated how can *I*, the developer, display the counts and any other useful information to the users of a project, so that they do not need to go to the JBoss JMX console and simply be able to look at information related to their project?

            I am hoping this is not a hard thing to do!
            -D

            • 3. Re: newbie question - number in queue?

              The jmx-console is a jmx adapter.
              You won't specific service information in the adapter,
              it is in the services.

              You don't have to use jmx-console, you can use any
              adapter or the MBeanServer directly.

              Read chapter2 of the admin docs.

              Regards,
              Adrian