Author |
Message
|
ironslab |
Posted: Wed Oct 31, 2018 7:37 am Post subject: [ESQL] Best way to shorten correlation ID? |
|
|
Newbie
Joined: 31 Oct 2018 Posts: 2
|
Hi forum. First time poster.
I'm currently using InputLocalEnvironment.Destination.SOAP.Reply.ReplyIdentifier to generate a correlationID.
The thing is, the recipient of the message only handles 32 characters, therefore is truncating the string to 32.
I'm thinking of using substring to reduce the length but I am not sure if that's the best way to do so. |
|
Back to top |
|
 |
ganesh |
Posted: Wed Oct 31, 2018 7:57 am Post subject: |
|
|
Master
Joined: 18 Jul 2010 Posts: 294
|
What are you trying to do with correlation ID in web service? |
|
Back to top |
|
 |
ironslab |
Posted: Fri Nov 02, 2018 12:53 pm Post subject: |
|
|
Newbie
Joined: 31 Oct 2018 Posts: 2
|
It's used to communicate with a AS400 backend through MQ. We use it to identify the corresponding response to our request within a queue. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Nov 02, 2018 7:59 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
ironslab wrote: |
It's used to communicate with a AS400 backend through MQ. We use it to identify the corresponding response to our request within a queue. |
You should let MQ take care of this and return as correlation-id the message-id or the request...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
gbaddeley |
Posted: Sun Nov 04, 2018 3:19 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
Quote: |
I'm currently using InputLocalEnvironment.Destination.SOAP.Reply.ReplyIdentifier to generate a correlationID.
The thing is, the recipient of the message only handles 32 characters, therefore is truncating the string to 32. |
MQ's MQMD CorrelationId field is exactly 24 bytes of binary data. If you were generating your own, it should be unique to 24 bytes, not 32. _________________ Glenn |
|
Back to top |
|
 |
|