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 » length of IIH and MQMD

Post new topic  Reply to topic
 length of IIH and MQMD « View previous topic :: View next topic » 
Author Message
ydsk
PostPosted: Wed Mar 07, 2007 2:02 pm    Post subject: length of IIH and MQMD Reply with quote

Chevalier

Joined: 23 May 2005
Posts: 410

Is the length of the IIH and MQMD headers constant ? Or does it change ?

I think IIH is around 84 bytes, I 'm not sure about MQMD.

Can someone pls let me know.

thank you.
ydsk.
Back to top
View user's profile Send private message
EddieA
PostPosted: Wed Mar 07, 2007 4:25 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

The MQMD is a fixed size, depending on the version. But, you always get that in a seperate storage area from the message payload, which would include the IIH.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
ydsk
PostPosted: Wed Mar 07, 2007 5:22 pm    Post subject: Reply with quote

Chevalier

Joined: 23 May 2005
Posts: 410

Eddie,

thanks, I think there 2 versions of MQMD , 1 and 2.

Most of the new applications use version 2, if I am not wrong. Can you pls tell me its size ?

And I know IIH is part of payload but not sure of its length.

Pls let me know.

Thanks.
ydsk.
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Wed Mar 07, 2007 7:18 pm    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

ydsk wrote:
Most of the new applications use version 2, if I am not wrong. Can you pls tell me its size ?



The length is included as part of the MD description IIRC.

IMHO it is bad programming to hardcode the length, especially when the length is avaible as part of the descriptor. What language are you using?...and why do you need to worry about the length anyway?
Back to top
View user's profile Send private message
ydsk
PostPosted: Thu Mar 08, 2007 7:24 am    Post subject: Reply with quote

Chevalier

Joined: 23 May 2005
Posts: 410

there is an existing program with a fixed buffer size and I need to change the program to make it work with MQ.

So, I need to know the length of a message including all its headers.

thnx.
ydsk.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Mar 08, 2007 7:44 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

ydsk wrote:
there is an existing program with a fixed buffer size and I need to change the program to make it work with MQ.


MQMD should not be returned in the message buffer but in a separate area. For the record IIRC it's 334 bytes.

Best way to obtain a more accurate figure is to sum the length of the fields; it's fixed length.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » length of IIH and MQMD
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.