sparker
sparker

Reputation: 1578

Implement IBM MQ COA in Java

I am sending a messages to MQ from my Java application. And I want to get the acknowledgement on the message I pushed. I know we can request COA (Conformation on arrival) from MQ Manager. But I want to know which COA corresponds to the message I pushed.

For example, I pushed two messages and I got one COA. So how to identify which message has failed to reach MQ. Is there any identification in COA like, this COA is for message1 something like that?

I am using Java8 and IBM MQ core library to push the message.

Upvotes: 1

Views: 574

Answers (1)

Shashi
Shashi

Reputation: 15273

By default Correlation ID of the COA message will be same as the message id of the original message. So you can compare the Correlation ID of a COA message with the message id of the message you have put. See the description of MQRO_COPY_MSG_ID_TO_CORREL_ID here.

Upvotes: 2

Related Questions