2009-04-28 9 views
2

Gibt es eine Möglichkeit, die Nachrichten anzuzeigen, die in einem JMS Topic Ziel enthalten sind?SUN IMQ topic messages Vorschau

Ich habe ein Problem mit Nachrichten, die nicht vom Topic-Ziel freigegeben werden. Das Thema hat 1 Produzent und 7 Verbraucher und keiner von ihnen ist langlebig.

Vielen Dank im Voraus für Anregungen.

Antwort

4

Nach einigen Grabungen endlich die Antwort gefunden.

Ich brauche den folgenden Befehl verwenden:

imqcmd list msg -t t -n my_topic -nocheck 

wo my_topic der Name meines Thema Ziel. Nach einer Antwort wie Empfang:

Listing messages for the destination 
------------------------------------ 
Destination Name Destination Type 
------------------------------------ 
my_queue   Topic 

On the broker specified by: 

------------------------- 
Host   Primary Port 
------------------------- 
localhost 7676 

-------------------------------------------------------------------------------------------------- 
Message # Message IDs              Priority Body Type 
-------------------------------------------------------------------------------------------------- 
0   ID:9-AAA.BBB.CCC.DDD(e9:3b:c8:51:8b:75)-58798-1217457169630  4   TextMessage 
1   ID:10-AAA.BBB.CCC.DDD(e9:3b:c8:51:8b:75)-58798-1217457169709 4   TextMessage 
2   ID:11-AAA.BBB.CCC.DDD(e9:3b:c8:51:8b:75)-58798-1217457169717 4   TextMessage 
3   ID:12-AAA.BBB.CCC.DDD(e9:3b:c8:51:8b:75)-58798-1217457169720 4   TextMessage 
4   ID:13-AAA.BBB.CCC.DDD(e9:3b:c8:51:8b:75)-58798-1217457169723 4   TextMessage 
5   ID:14-AAA.BBB.CCC.DDD(e9:3b:c8:51:8b:75)-58798-1217457169727 4   TextMessage 

I Mitteilungsdetails mit diesem Befehl anzeigen kann:

imqcmd query msg -t t -n my_topic -msgID "ID:9-AAA.BBB.CCC.DDD(e9:3b:c8:51:8b:75)-58798-1217457169630" -nocheck 

, das so etwas wie Druck willl:

Querying message: 
------------------------------------------------------------ 
Message ID 
------------------------------------------------------------ 
ID:9-AAA.BBB.CCC.DDD(e9:3b:c8:51:8b:75)-58798-1217457169630 

In the destination 
------------------------------------ 
Destination Name Destination Type 
------------------------------------ 
my_topic   Topic 

On the broker specified by: 

------------------------- 
Host   Primary Port 
------------------------- 
localhost 7676 

-------------------------- 
Message Header Information 
-------------------------- 
Message ID     ID:9-AAA.BBB.CCC.DDD(e9:3b:c8:51:8b:75)-58798-1217457169630 
Correlation ID    TestCorrID 
Destination Name   my_topic 
Destination Type   Topic 
Delivery Mode    PERSISTENT (2) 
Priority     4 
Redelivered     false 
Timestamp     7/30/08 3:32:49 PM 
Type       
Expiration     12/31/69 4:00:00 PM 
ReplyTo Destination Name temporary_destination://topic/AAA.BBB.CCC.DDD/58798/1 
ReplyTo Destination Type  

------------------------------ 
Message Properties Information 
------------------------------ 
LongProp  6534 
IntProp  3 
StringProp TestStringValue 
DoubleProp 7.4687643E7 

------------------------ 
Message Body Information 
------------------------ 
Body Type TextMessage (1) 

Danach kann die Nachricht mit gelöscht werden Befehl:

imqcmd destroy msg -t t -n my_topic-msgID "ID:9-AAA.BBB.CCC.DDD(e9:3b:c8:51:8b:75)-58798-1217457169630" -nocheck 

Hoffe, das hilft jemandem, eines Tages ...

+0

Danke .. hat mir heute geholfen – Preston