Posted: Tue May 20, 2014 6:17 am Post subject: little and big endian in DLQ-Header at the same QMgr
Novice
Joined: 03 Jul 2009 Posts: 24
Hi
Years ago i wrote java application to summarize the DLQs of our (AIX) QMgrs.
After the migration to aix 7x and mq 7x sometimes the DLQ-Header of messages is not readable for my program.
Code to get the MQRC:
retrievedMessage = new MQMessage();
...
retrievedMessage.readStringOfByteLength(8);
rc=""+retrievedMessage.readInt();
System.out.println(rc);
I think the problem is little an big endian(?) (output with MQMON):
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
An MQ message contains within the MQMD the code page and encoding that the message is in (in fact more than that, each chained header contains the code page and encoding of the next header in the chain).
If your application requires to read the messages in a specific encoding, why not ask MQ to give you the message contents in your preferred encoding?
Cheers
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here! MQGem Software
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