0

We are setting queue.setTargetClient(1) and JMSCorrelationID from application side. Once response comes application in MQ, we JMSCorrelationID value populated as HEX value.

For now, I am using the following selector pattern:

corlID = "JMSCorrelationID='ID:" + Hex.encodeHexString(corl.getBytes())+"'";

Do we know why this happening?

JoshMc
  • 10,239
  • 2
  • 19
  • 38
Vivek
  • 51
  • 3
  • What is the question. What is unexpected about the behavior that you see? – JoshMc Feb 11 '19 at 15:41
  • We are expecting that JMSCorrelationID should be in String format and not in Hex – Vivek Feb 11 '19 at 16:05
  • The underlying ID field in MQ is a byte field, not a string field, so the only sensible way to represent it as a string is in HEX. How you are doing it looks normal. – JoshMc Feb 11 '19 at 16:53
  • See if this answer helps at all "[Get MQ messageId in string format](https://stackoverflow.com/questions/45729239/get-mq-messageid-in-string-format/45741083#45741083)". – JoshMc Feb 11 '19 at 16:56

0 Answers0