Enabling message tracing for individual messages.

Enabling message tracing for individual messages.

book

Article ID: KB0088002

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service -
Not Applicable -

Description

Resolution:
Description:
= = = = = =

You can enable tracing on individual messages by setting the JMS_TIBCO_MSG_TRACE property on the message. The value of the property can be null or body. Setting the property to null specifies only the message ID and message sequence will be included in the trace entries for the message. Setting the property to body specifies the message body will be included in the trace entries for the message.

When the JMS_TIBCO_MSG_TRACE property is set for a message, trace entries are generated for the message as it is processed, regardless of whether the trace property is set for any destinations the message passes through. Trace messages are generated for the message when it is sent by the producer and when it is received by the consumer. In order to do that, as for any JMS property, you would have to do (in Java for instance):

message.setStringProperty("JMS_TIBCO_MSG_TRACE", null); // Only msgID and sequence number

or

message.setStringProperty("JMS_TIBCO_MSG_TRACE", "body"); // body included in the trace.

Issue/Introduction

Enabling message tracing for individual messages.