Viewing message content from the Admin tool?

Viewing message content from the Admin tool?

book

Article ID: KB0085369

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service -
Not Applicable -

Description

Resolution:
Resolution:
================
For all messages try the following:

1). You can view the contents of messages via the EMS Admin tool with the "show &ltmessage_ID>" command if you know the JMSMessageID field of specific messages.

You will need to set "track_message_ids" parameter in tibemsd.conf to enabled. You can only view message that have been sent to the server after this parameter has been enabled.  You will not be able to view those messages that have already been sent to the server while this parameter was disabled.

We also provide corresponding method in EMS Admin API.

public Message getMessage(java.lang.String messageID)
                   throws TibjmsAdminException,
                          java.lang.IllegalArgumentException

2). If the message does not have message ID (i.e sending application disables the messageID creation) or you do not already know the value of JMSMessageID for the messages, you can view the message in EMS server log.

a). Turn on the server tracing option "MSG", i.e., set server log_trace=DEFAULT

b). Enable message tracing at the destination level, i.e., addprop queue &ltqueue> trace=body

The message content can be found in the server log when it is received by the server.
Refer to the EMS User's Guide -> Monitoring Server Activity -> Message Tracing.

3). For messages on the queue, you can use the queue browser API (javax.jms.QueueBrowser).

Refer to the sample tibjmsQueueBrowser.java under &ltems_home>/samples/java.

4). It may be possible to display message content in the Hawk Display.  Consult TIBCO Hawk support.

Platforms:
========
All

Keywords:
=========
track_message_ids message content queue browser

Issue/Introduction

Viewing message content from the Admin tool?