ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » [ESQL] Best way to shorten correlation ID?

Post new topic  Reply to topic
 [ESQL] Best way to shorten correlation ID? « View previous topic :: View next topic » 
Author Message
ironslab
PostPosted: Wed Oct 31, 2018 7:37 am    Post subject: [ESQL] Best way to shorten correlation ID? Reply with quote

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
View user's profile Send private message
ganesh
PostPosted: Wed Oct 31, 2018 7:57 am    Post subject: Reply with quote

Master

Joined: 18 Jul 2010
Posts: 294

What are you trying to do with correlation ID in web service?
Back to top
View user's profile Send private message
ironslab
PostPosted: Fri Nov 02, 2018 12:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Fri Nov 02, 2018 7:59 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
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
View user's profile Send private message Send e-mail
gbaddeley
PostPosted: Sun Nov 04, 2018 3:19 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2492
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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » [ESQL] Best way to shorten correlation ID?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.