user1496840
user1496840

Reputation: 1

Exist some way to extract the correlation-Id property from of a MQ message using AMQP?

I have a microservice that is subscribed to a topic and receives messages using the AMQP protocol. This microservice reads the correlationid value in order to set the response with this same correlation. The problem is that whoever publishes on this topic does so using the MQ protocol and I want to know if there is any compatibility between MQ and AMPQ protocols to obtain this value.

The microservice takes the body of the message correctly because apparently there is compatibility in that part but it does not obtain the correlation when an attempt was made to take the metadata. The library I am using is Smallrye

I tried to get the value from the metadata but I got null. I understand that it is because the original message is not set with AMQP but with MQ.

Upvotes: 0

Views: 85

Answers (0)

Related Questions