|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQMD and Special Headers |
« View previous topic :: View next topic » |
Author |
Message
|
Satmq |
Posted: Wed Jan 28, 2004 8:57 am Post subject: MQMD and Special Headers |
|
|
Newbie
Joined: 28 Jan 2004 Posts: 2
|
Hi,
I am very new to MQSeries.Hence my doubts may be very silly.
I don't have a clear idea of the structure of MQmessage.
As far as I know,message is divided into to the MQMD part and data part.
I have read about many headers like MQRFH ,MQRFH2 etc...
my doubts are :
1.when we use these types of headers ,do we have to use MQMD?
2.when we use header ,is data field mandatory?(somewhere i have seen header alone)
can anybody give me a clearcut idea of messages .or can anybody sujest good study material for the same.(which is available in net)
Regards
satmq |
|
Back to top |
|
 |
mqonnet |
Posted: Wed Jan 28, 2004 9:29 am Post subject: |
|
|
 Grand Master
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
|
NO Question is silly and everyone has a learning curve.
You could read the application programming reference manual for the definitions of MQ structures.
As for the headers, simple example.
When you put a message using AMQSPUT this is what happens.
----MQMD|===Data===----
The above is the complete message that is put to the queue. You have the MQMD header followed by the actual data, whatever you put, say "hello world" as an example.
When you have other headers, then its a chain.
Say your app puts MQRFH2 header, the same message as above would look like this.
---MQMD|===MQRFH2|Data===---
Here, Mqmd has a format field that says the data bit contains RFH2 header. The actual message has the RFH2 header followed by the data. Here Data is the message put by the user, like in previous example, "hello world". Of course you have to present the data in RFH2 format.
Hope this helps.
Cheers
Kumar |
|
Back to top |
|
 |
Satmq |
Posted: Wed Jan 28, 2004 11:02 pm Post subject: |
|
|
Newbie
Joined: 28 Jan 2004 Posts: 2
|
Hi Kumar ,
Thanks a lot
cheers
Shoby |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|