Posted: Tue Jan 15, 2008 11:19 pm Post subject: Correlation ID
Newbie
Joined: 15 Jan 2008 Posts: 2
Hi
I am new to MQ.
My correlation ID contains spaces and low-values. Is it acceptable? What i want to know is, correlation ID is a hexadecimal field or an alphanumeric field?
It's a binary data field (or in your terms hexadecimal). It is not translated when messages cross platforms. _________________ Cheers,
David C. Partridge
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
suzeet wrote:
Can it contain spaces?
As the previous poster said, it's a hex field so you can set it to any value, including that which is used to represent a space on your platform.
But there are any number of posts in here discussing why treating the correl id & the message id as strings (i.e. containing spaces instead of hex values) is a BAD idea. They are not strings even if it's possible to obtain a string representation of them. Do not treat them as strings.
There are an equivalent number of posts discussing why setting these values by hand is a bad idea. Do not do this lightly and read the discussions first.
The Search Button is Your Friend. _________________ Honesty is the best policy.
Insanity is the best defence.
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