Posted: Fri Jul 02, 2010 5:02 am Post subject: Getting Correlid in String format
Novice
Joined: 01 Jan 2007 Posts: 21
I am writing a java program using MQ java base API. I need to retrieve the Correlid in string format which got some application specific info. Please post if anybody has done that or any idea how to do it.
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
There have been multiple posts in this forum on why you shouldn't put application data (or any user data) in the correl & msg id fields. One of the reasons is that it's not a string (as you've discovered) it's a byte array. You can cast it but that's not going to work all that well, especially if you're crossing platforms and/or code pages. _________________ 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