2013-03-09 84 views
0

我們使用的是JMS API的Tibco客戶端實現。我們有一個MessageListeneronMessage()實施。是否可以使用Tibco隊列客戶端查看收到的隊列消息?

Tibco客戶端可以檢查隊列中過去(收到的)消息嗎? (我知道這完全忽略了隊列的邏輯概念 - 我想知道,如果隊列實現提供這種解決方法。)

+0

只是澄清 - 已收到並已確認的消息? – 2013-03-12 08:54:07

+0

是的 - 這是正確的 – hawkeye 2013-03-12 11:26:16

回答

0

不適用於「過去」消息。

由接收方確認的消息將從隊列中刪除 - 因爲它們的「功能」已經完成。

您可以將Listener配置爲將您的消息保存在某個數據庫或文件中 - 但是可以用於將來的消息。

0

客戶端使用一個QueueBrowser可以對象來看待的消息在隊列,不刪除它們。

+0

所以你說沒有辦法做到這一點,一旦他們被'刪除'。 – hawkeye 2013-03-11 09:33:36

+0

請解釋一下你想要達到的目標嗎? – user2023404 2013-03-11 10:42:31

+0

我試圖查看過去已經收到的消息 - 作爲一種調試技術。 – hawkeye 2013-03-11 11:12:06

0

@hawkeye無法瀏覽過去的消息...在任何時間點,您都可以瀏覽目標地址,僅用於未決消息。

There is no way for you browse all the received messages as EMS server usually deletes the message once it has delivered (acknowledged) for the given delivery mode. 
One possible way is to a send copy of the messages to another queue (without any receivers) before actually confirming the messages. 
Also it depends on your acknowledgement mode and logic involved.