How can I get original destination name when using destination bridge?
book
Article ID: KB0084503
calendar_today
Updated On:
Products
Versions
TIBCO Enterprise Message Service
-
Not Applicable
-
Description
Resolution: ===== Begin Quote ===== I have created a bridge between a queue template to one single queue. For example I created a bridge between "Q.sample.>" to "Q.sample.copy". When I send messages to Q.sample.1 and Q.smaple.2, all message are copied to the same destination bridge Q.sample.copy. This works well. When reading messages from Q.smaple.copy, how can I get the name of the queue from which the message have been copied ? ===== End Quote =====
Based on the message received, you won't be able to tell whether the message was first sent to a source queue or directly to the destination queue.
You can try to enable message trace for the target destination. When the message is bridged to the target destination, you will see the following message trace in the server log:
================= 2009-04-23 12:43:50.195 [MSG:122] bridged from queue='Q.sample.2',MSG=0: connID=11 p rodID=8 msgID='ID:EMS-SERVER.17E449F0B61A1:79' Time=1240515830195 mode=PERSISTE NT queue='Q.sample.copy' msg=TextMessage={Header={ JMSDestination={QUEUE:'queue.sample.copy' } JMSDeliveryMode={PERSISTENT} JMSPriority={4} JMSMessageID={ID:EMS-SERVER.17E44 9F0B61A1:79} JMSTimestamp={1240515830195}} Body={string:'7'}
2009-04-23 12:43:54.788 [MSG:140] bridged from queue='Q.sample.1',MSG=0: connID=12 p rodID=9 msgID='ID:EMS-SERVER.17E449F0B61A1:8B' Time=1240515834788 mode=PERSISTE NT queue='Q.sample.copy' msg=TextMessage={Header={ JMSDestination={QUEUE:'Q.sample.copy' } JMSDeliveryMode={PERSISTENT} JMSPriority={4} JMSMessageID={ID:EMS-SERVER.17E44 9F0B61A1:8B} JMSTimestamp={1240515834788}} Body={string:'3'} =================
Issue/Introduction
How can I get original destination name when using destination bridge?