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 » WebSphere Message Broker (ACE) Support » MQ Message Properties vs MQRFH2.usr folder in MB v7 onwards

Post new topic  Reply to topic
 MQ Message Properties vs MQRFH2.usr folder in MB v7 onwards « View previous topic :: View next topic » 
Author Message
mbwannabe1
PostPosted: Tue Aug 14, 2012 1:29 pm    Post subject: MQ Message Properties vs MQRFH2.usr folder in MB v7 onwards Reply with quote

Novice

Joined: 18 Apr 2012
Posts: 13

Hi,

Ive been reading some posts about MQ Message Properties being the way to store user-defined name-value metadata pairs rather that using the MQRFH2.usr folder that we traditionally used. For eg:

http://www.mqseries.net/phpBB2/viewtopic.php?t=60570&sid=cd0d019e6240f9dc7e80e05e048793fb

indicates that in broker v7 onwards, the RFH2 header is actually implemented as MQ Message properties.

However, the IBM documenation indicates that When the message flow processing is complete, the Properties folder is discarded. so this makes it a bad cadidate to share metadata between flows.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fac12610_.htm

which of these is correct and whats the ESQL syntax to access and set user defined Message properties?

thanks
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue Aug 14, 2012 1:33 pm    Post subject: Re: MQ Message Properties vs MQRFH2.usr folder in MB v7 onwa Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

mbwannabe1 wrote:
share metadata between flows.


http://mqseries.net/phpBB/viewtopic.php?t=61297&start=15&postdays=0&postorder=asc&highlight=&sid=93dcdf30b39519879a4a5a5ce719ab34
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Tue Aug 14, 2012 3:45 pm    Post subject: Re: MQ Message Properties vs MQRFH2.usr folder in MB v7 onwa Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

lancelotlinc wrote:
mbwannabe1 wrote:
share metadata between flows.


http://mqseries.net/phpBB/viewtopic.php?t=61297&start=15&postdays=0&postorder=asc&highlight=&sid=93dcdf30b39519879a4a5a5ce719ab34


That said, the problem is that neither Broker v7 nor Broker v8 support MQ v7 properties, except indirectly through the RFH2.

https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=20925

Presumably some concern from the development side was the potential confusion between Root.Properties and something like Root.MQMD.Properties (which doesn't exist, and may or may not be a name that is anything other than my own wild guess).

The "Good" news is that if you have a Broker running on MQ v7, 7.1, or 7.5, it will map from the MQRFh2 to the message properties, and vice versa, "automatically" for you.

That said, you may run into some compatibility issues with some applications.
Back to top
View user's profile Send private message
mqxplorer
PostPosted: Wed Dec 12, 2012 2:04 pm    Post subject: Re: MQ Message Properties vs MQRFH2.usr folder in MB v7 onwa Reply with quote

Master

Joined: 22 Jun 2009
Posts: 206

mqjeff wrote:

That said, the problem is that neither Broker v7 nor Broker v8 support MQ v7 properties, except indirectly through the RFH2.

https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=20925

Presumably some concern from the development side was the potential confusion between Root.Properties and something like Root.MQMD.Properties (which doesn't exist, and may or may not be a name that is anything other than my own wild guess).

The "Good" news is that if you have a Broker running on MQ v7, 7.1, or 7.5, it will map from the MQRFh2 to the message properties, and vice versa, "automatically" for you.

That said, you may run into some compatibility issues with some applications.


When you say message properties... I understood it is Input(or)OutputRoot.Properties.. Is that correct?

Code:
WebSphere MQv7 completely replaced the process of atttaching metadata to a message, to stop relying on the overly complicated MQRFH2 header and use a new Message Properties that are carried separately from the message


I read the above info from the link you provided. It says new Message Properties.. I guess, I am bit confused with this.

I have two flows where one flow sends some info in MQRFH2 header (usr folder) to a tempoarry queue which I will get in second flow using MQGet (get by correild) and I am trying to use the info in usr folder of MQRFH2 header in the second flow. However, when I am assinging the value in usr folder to a variable, I don't see any value set to it even though I see the value in usr folder of the message got by MQGet node. We have our broker running on V7 and MQ on V7. Is it something to do with the info you provided or do I have to make any chnages to the queue properties to have the Message properies populated with the values in RFH2 header?

Thanks
mqxplorer
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Dec 13, 2012 3:58 am    Post subject: Re: MQ Message Properties vs MQRFH2.usr folder in MB v7 onwa Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mqxplorer wrote:
When you say message properties... I understood it is Input(or)OutputRoot.Properties.. Is that correct?


No. If you re-read the post, my most worthy associate said:

mqjeff wrote:
The "Good" news is that if you have a Broker running on MQ v7, 7.1, or 7.5, it will map from the MQRFh2 to the message properties, and vice versa, "automatically" for you.


So any message properties appear in the message tree as an RFH2 header, and in the actual message as message properties.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqxplorer
PostPosted: Wed Dec 19, 2012 1:15 pm    Post subject: Re: MQ Message Properties vs MQRFH2.usr folder in MB v7 onwa Reply with quote

Master

Joined: 22 Jun 2009
Posts: 206

Vitor wrote:
mqxplorer wrote:
When you say message properties... I understood it is Input(or)OutputRoot.Properties.. Is that correct?


No. If you re-read the post, my most worthy associate said:

mqjeff wrote:
The "Good" news is that if you have a Broker running on MQ v7, 7.1, or 7.5, it will map from the MQRFh2 to the message properties, and vice versa, "automatically" for you.


So any message properties appear in the message tree as an RFH2 header, and in the actual message as message properties.


I think, I am confused here.. Let us say.. I have a message flow which sets up MQRFH2 header with some info in usr folder and places the messages in a queue. There is another message flow which reads the message placed by the first flow and when I see the message in debug mode, I should see the RFH2 header mapped to message properties.. is that correct? If this is the case, I don't see that happening. What is this Message properties .. Will broker create a folder called Message Properties before the Payload which has the conetnts mapped from RFH2 header? The property Control on my queue is "Compatibility".

Thanks
mqxplorer
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Dec 19, 2012 1:33 pm    Post subject: Re: MQ Message Properties vs MQRFH2.usr folder in MB v7 onwa Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mqxplorer wrote:
There is another message flow which reads the message placed by the first flow and when I see the message in debug mode, I should see the RFH2 header mapped to message properties.. is that correct? If this is the case, I don't see that happening. What is this Message properties .. Will broker create a folder called Message Properties before the Payload which has the conetnts mapped from RFH2 header?


For reasons which presumably make perfect sense to IBM, WMB always exposes WMQv7 message properties in the message tree as an RFH2 header, as my most worthy associate says. So you'll see the Properties folder, which contains the WMB properties, and an RFH2 folder which includes the properties from the message.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » WebSphere Message Broker (ACE) Support » MQ Message Properties vs MQRFH2.usr folder in MB v7 onwards
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.