Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As demonstrated on the following screen shotscreenshot, once jconsole is running select the MBeans tab and select the Q-MAN set of MBeans.

 

The screenshot above depicts the value of a queue attributes.

Invoking Operations

jconsole can be used for invoking operations. For example, the following screshot shows the queue message_queue attributes.

Image Added

We can see that 22 messages have been enqueued when only 11 messages have been dequeued. This means that message_queue contains 11 messages. Let's delete 5 of them! For doing that we must select the operation purge of the queue message_queue. The following screeshot shows that the operation purge has one parameter that specify the number of messages to be discarded.

Image Added

We invoke the purge operation with 5 messages. The following popup window tells us that the operation has been successfully invoked.

Image Added

We can now check that 5 messages have been dequeued form message_queue. The following screenshot shows the updated attributes of message_queue.

Image Added

As shown above there are now 16 messages that have been dequeued.