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 Discussion » Purpose of MQRFH2 header

Post new topic  Reply to topic
 Purpose of MQRFH2 header « View previous topic :: View next topic » 
Author Message
kumar7890
PostPosted: Mon Jun 25, 2012 5:48 pm    Post subject: Purpose of MQRFH2 header Reply with quote

Newbie

Joined: 25 Jun 2012
Posts: 4

I am newbie to message broker and would like to know the purpose of MQRFH2 header . Created a message flow which gets message from MQ and to test this flow i am putting data into queue by using RFHUTIL . I don't see the MQRFH2 header in the message logical tree after parsing . Could somebody tell me in which scenario i need to have MQRFH2 header and how it is different from MQMD header.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Jun 25, 2012 5:52 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

1) Go to google.
2) In the search box, type 'what is the purpose of the MQRFH2 header'
3) Repeat these steps for the MQMD
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
kumar7890
PostPosted: Mon Jun 25, 2012 5:59 pm    Post subject: Reply with quote

Newbie

Joined: 25 Jun 2012
Posts: 4

bruce2359 wrote:
1) Go to google.
2) In the search box, type 'what is the purpose of the MQRFH2 header'
3) Repeat these steps for the MQMD


Thanks for the advice but i already googled still didn't get a clear picture
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jun 25, 2012 6:47 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

RFHUtil allows you to either create the RFH header or to set User properties (V7).
The broker still displays the user properties under the RFH2 form.
The RFH2 header is a recently phased out implementation of the representation of user properties on the message (see user properties in JMS). It has a number of rules as to its content and formatting. This is why unless you have an API that does the work for you (JMS, XMS) it is recommended you be very very careful when dealing with it. It is part of the payload and precedes the payload content.

As the broker does not deal with MQ message properties in the V7 or JMS sense, it still represents them through the RFH2 header...

Hope that gives you an idea...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mvic
PostPosted: Tue Jun 26, 2012 6:12 pm    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

bruce2359 wrote:
1) Go to google.
2) In the search box, type 'what is the purpose of the MQRFH2 header'

???
Did you do this? I just did.. and it did not give the kind of info to help a newbie.
Back to top
View user's profile Send private message
mvic
PostPosted: Tue Jun 26, 2012 6:17 pm    Post subject: Re: Purpose of MQRFH2 header Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

kumar7890 wrote:
I am newbie to message broker and would like to know the purpose of MQRFH2 header

Despite other comments here, the purpose of MQRFH2 is not well described anywhere I know, and it is not phased-out.

The range of uses for MQRFH2 blocks has changed over the releases of MQ. However it might have been used in the ancient past (I cannot quite remember now) its current use (MQ v7+) is to hold "properties" before the full payload of your message.

"Properties" are a defined format (the MQ manuals might help) and the payload of the message that follows is your responsibility, but in principle can be a binary blob that only your putter and getter can understand.

The properties are typically (MQ 7+) accessed via APIs rather than direct composition of the MQRFH2 by your own code. This has changed over the releases, and MQ v7 was better at this than previous releases, though it is best to keep current with fix packs, as there were bugs.

Hope this helps.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jun 26, 2012 7:39 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Sorry "phase out" was probably not quite the right term. I was wondering what you'd call something that is no longer encouraged but not yet deprecated... With V7 the preferred way as I understand it is to call for MQGMO_PROPERTIES_IN_HANDLE (sorry from memory) in java, c# and the C equivalent which has 2 more API calls concerning properties and handles. I'm sure there is also an equivalent for COBOL but never took the time to research it...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
bruce2359
PostPosted: Tue Jun 26, 2012 8:54 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

IBM refers to those things as 'not strategic.'
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
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 Discussion » Purpose of MQRFH2 header
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.