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 » IBM MQ API Support » What conditions the MQRFH header is used?

Post new topic  Reply to topic
 What conditions the MQRFH header is used? « View previous topic :: View next topic » 
Author Message
KAKEZ
PostPosted: Tue Oct 29, 2002 2:25 am    Post subject: What conditions the MQRFH header is used? Reply with quote

Centurion

Joined: 10 Oct 2002
Posts: 117

Hi all,
I would like to know exactly when we can ou have to use MQRFH.
Is this header included in the message data or be placed after the MQMD?
Thanks for explanations.
Back to top
View user's profile Send private message
cfarkas
PostPosted: Tue Oct 29, 2002 4:24 am    Post subject: Reply with quote

Novice

Joined: 24 Jun 2001
Posts: 13
Location: France

Hello Kakez. First of all, what is an MQRFH? Essentially, it's (yet another) type of header that comes absolutely IN FRONT of the message payload. An MQSeries message ALWAYS contains:
- MQMD
- Optional headers such as MQRFH
- message payload

MQRFH is sort of a general purpose application header. Other examples of headers are MQIIH (for IMS Bridge), MQHSAP (for the MQ Link for R/3), etc.

As I said above, the RFH (Rules and Formats Header) is a general-purpuse header. Any MQSeries application can make use of it as it sees fit.

As I recall, the original MQRFH contained a bunch of fixed length fields (overall length, format, CCSID, etc.) followed by a variable length keyword section containing name/value pairs "Command Publish Topic MyStuff/Monday". One of the first "applications" that I saw that made use of the MQRFH header was the original IBM Pub/Sub broker that is delivered today with MQSeries base product. This is documented in the IBM MQSeries Pub/Sub books.

A few years ago, a newer MQRFH2 was introduced. As far as I know, the main difference here is that instead of using a variable length section with keywords, there is now a variable length section that uses XML. Using XML is a lot nicer today than just simple name/value pairs. The more complete IBM message broker, WMQI, makes heavy use of the RFH2 header. So does JMS messaging.

So, in answer to your question, When do you use an RFH header, the answer is "It depends upon your MQ application". If you're using WMQI Pub/Sub, JMS,AMI or MQSeries base Pub/Sub, some form of RFH header will very often be used (if not always!). Other MQSeries applications by IBM or by others may also require it. I would also personally make use of the RFH header today if I was designing an MQ application that needed some sort of header to add value to my application and the way that my data would be handled. It's a nice way to go.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » What conditions the MQRFH header is used?
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.