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 » MQMD and Special Headers

Post new topic  Reply to topic
 MQMD and Special Headers « View previous topic :: View next topic » 
Author Message
Satmq
PostPosted: Wed Jan 28, 2004 8:57 am    Post subject: MQMD and Special Headers Reply with quote

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
View user's profile Send private message
mqonnet
PostPosted: Wed Jan 28, 2004 9:29 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Satmq
PostPosted: Wed Jan 28, 2004 11:02 pm    Post subject: Reply with quote

Newbie

Joined: 28 Jan 2004
Posts: 2

Hi Kumar ,
Thanks a lot
cheers
Shoby
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 » MQMD and Special Headers
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.