Author |
Message
|
kumar7890 |
Posted: Mon Jun 25, 2012 5:48 pm Post subject: Purpose of MQRFH2 header |
|
|
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 |
|
 |
bruce2359 |
Posted: Mon Jun 25, 2012 5:52 pm Post subject: |
|
|
 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 |
|
 |
kumar7890 |
Posted: Mon Jun 25, 2012 5:59 pm Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Mon Jun 25, 2012 6:47 pm Post subject: |
|
|
 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 |
|
 |
mvic |
Posted: Tue Jun 26, 2012 6:12 pm Post subject: |
|
|
 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 |
|
 |
mvic |
Posted: Tue Jun 26, 2012 6:17 pm Post subject: Re: Purpose of MQRFH2 header |
|
|
 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 |
|
 |
fjb_saper |
Posted: Tue Jun 26, 2012 7:39 pm Post subject: |
|
|
 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 |
|
 |
bruce2359 |
Posted: Tue Jun 26, 2012 8:54 pm Post subject: |
|
|
 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 |
|
 |
|