How only show static queues, not to show the dynamic and temp queues.
book
Article ID: KB0089933
calendar_today
Updated On:
Products
Versions
TIBCO Enterprise Message Service
-
Not Applicable
-
Description
Description: Show static queues.
Issue/Introduction
How only show static queues, not to show the dynamic and temp queues.
Resolution
There is no such tibemsadmin command that can just show the statistics of static destinations. However, you can achieve this by using the EMS Admin API. For example:
================ private void ShowStatQue() throws TibjmsAdminException { server= admin.getInfo(); QueueInfo[] dst=admin.getQueues(); // Get the info for all the queues that are known to the server. for(int i=0;i<dst.length;i++){ if(dst[i].isStatic()){ //check if this queue is a static queue System.out.println(dst[i].getInboundStatistics().getByteRate()); System.out.println(dst[i].getOutboundStatistics().getByteRate()); } } } ================
For
more information, refer to the EMS document “API
Reference”. Also refer to the EMS sample code, “tibjmsServer.java”
located in “TIBCO-EMS_HOME/samples/admin” .