IBM MQ gets topic name from message in subscription queue

I am using the 'c-client' api to access Websphere IBM MQ 8. Is it possible to determine the subject of the source from which the message was published?

+4
source share
2 answers

To find out about the subject line, use the API call MQCRTMHto get the message descriptor, and then query the message properties using the API call MQINQMPthat defines the property MQTopicString.

MQCRTMH- Create a message descriptor
MQINQMP- Property names
Sample IBM MQ procedural programs

, IBM MQ, , , . , , - , , , . , .

Windows {MQM Home}/Tools UNIX {MQM Home}/samp. , AMQSIQMA , , API MQINQMP.

+4

, API MQCRTMH , , MQINQMP API, MQTopicString.

- "mqps.Top" ( ).

+2

Source: https://habr.com/ru/post/1679288/


All Articles