Author |
Message
|
ydsk |
Posted: Wed Mar 07, 2007 2:02 pm Post subject: length of IIH and MQMD |
|
|
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 |
|
 |
EddieA |
Posted: Wed Mar 07, 2007 4:25 pm Post subject: |
|
|
 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 |
|
 |
ydsk |
Posted: Wed Mar 07, 2007 5:22 pm Post subject: |
|
|
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 |
|
 |
kevinf2349 |
Posted: Wed Mar 07, 2007 7:18 pm Post subject: |
|
|
 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 |
|
 |
ydsk |
Posted: Thu Mar 08, 2007 7:24 am Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Thu Mar 08, 2007 7:44 am Post subject: |
|
|
 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 |
|
 |
|