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 » General IBM MQ Support » little and big endian in DLQ-Header at the same QMgr

Post new topic  Reply to topic
 little and big endian in DLQ-Header at the same QMgr « View previous topic :: View next topic » 
Author Message
schmun
PostPosted: Tue May 20, 2014 6:17 am    Post subject: little and big endian in DLQ-Header at the same QMgr Reply with quote

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):

Works:
MQRC2035=07F3
+00000000 444C4820 01000000 F3070000

Problem!:
MQRC2085=0825
+00000000 444C4820 00000001 00000825


My main problem is, that I do not understand why there are different endians at the same(!) DLQ.
Has someone an idea?

My second question:
How can I handle this with the in Java?
Back to top
View user's profile Send private message
hughson
PostPosted: Tue May 20, 2014 7:25 am    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1921
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
Back to top
View user's profile Send private message Visit poster's website
schmun
PostPosted: Wed May 21, 2014 12:36 am    Post subject: Reply with quote

Novice

Joined: 03 Jul 2009
Posts: 24

Thank you

You put me back on track. Could not belive that i didnt use MQGMO_CONVERT at that time.
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 » General IBM MQ Support » little and big endian in DLQ-Header at the same QMgr
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.