簡體   English   中英

春季啟動如何在Java中顯示/測量Tibco隊列/主題的深度和閾值

[英]how to show/measure depth and threshold of a tibco queue/topics in java, spring boot

我想在Java中顯示eit tibco jms隊列深度和閾值。 有誰有示例示例顯示如何顯示隊列深度和閾值。

謝謝。

您必須在構建路徑中包含tibjmsadmin.jar,然后可以執行以下操作:

 TibjmsAdmin admin = new TibjmsAdmin(server, user, password);
 int numMsgs = admin.getQueues("Q1")[0].getPendingMessageCount();

不知道“閾值”是什么意思,但可以嘗試getMaxMsgs()

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM